File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ public partial interface CPlayer_ItemServices {
1919 /// <returns>The item that was given.</returns>
2020 public T GiveItem < T > ( string itemDesignerName ) where T : ISchemaClass < T > ;
2121
22+ /// <summary>
23+ /// Give an item to the player.
24+ /// </summary>
25+ /// <param name="itemDesignerName">The designer name of the item to give.</param>
26+ public void GiveItem ( string itemDesignerName ) ;
27+
28+
2229 /// <summary>
2330 /// Drop the item that player is holding.
2431 /// </summary>
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ public T GiveItem<T>(string itemDesignerName) where T : ISchemaClass<T> {
1818 return T . From ( GameFunctions . CCSPlayer_ItemServices_GiveNamedItem ( Address , itemDesignerName ) ) ;
1919 }
2020
21+ public void GiveItem ( string itemDesignerName ) {
22+ GameFunctions . CCSPlayer_ItemServices_GiveNamedItem ( Address , itemDesignerName ) ;
23+ }
24+
2125 public void RemoveItems ( ) {
2226 GameFunctions . CCSPlayer_ItemServices_RemoveWeapons ( Address ) ;
2327 }
You can’t perform that action at this time.
0 commit comments