AdvGiveItem
Gives a player a single item, and returns a reference to the item.
Syntax
AdvGiveItem @player_to_give_item item_type_to_add
Returns
reference to Item object
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
player to give item | Yes | Player value e.g. @player, with EXACTLY 1 player. | |
item type to add | Yes | ItemType enum value - found using 'serhelp ItemType' command |
Details
Returned reference will be invalid if the player does not have enough space for the item.
Validated examples using this method
On a running server
Use serhelp AdvGiveItem to inspect the reference generated by your installed SER version.