Skip to main content

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

NameRequiredTypeDescription
player to give itemYesPlayer value e.g. @player, with EXACTLY 1 player.
item type to addYesItemType 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.