Item Giving Function
How to give items through functions
Method 1
This method depends on the id of the item
local item = wOS:GetItemData( itemno )
wOS:HandleItemPickup( ply, item.Name )
Replace "itemno" with the id of the item you wish to give the player, to find the id of an item type "wos_listitems" in your clientside console
If their inventory is full then it won't give it to them.
If you are trying to give an item like this multiple times, and do not want to mix them up, define different values to each item id, and make sure to replace the value in the function aswell
Examples of this as shown:
local item1 = wOS:GetItemData( item1no )
local item2 = wOS:GetItemData( item2no )
wOS:HandleItemPickup( ply, item1.Name )
wOS:HandleItemPickup( ply, item2.Name )
Method 2
This method depends on the string name of the item
wOS:HandleItemPickup( ply, "(Name of Item)")
With this you will replace the (Name of Item) with the actual name of the item, make sure to keep the quotation mark
Examples of this as shown:
wOS:HandleItemPickup( ply, "Crystal ( Green )")