function removeItem (server-side)
Available since version: 0.3.0
This function will remove an item from the player/NPC's inventory.
Declaration
boolean removeItem(number player_id, string instance, number amount)
Parameters
numberplayer_id: Target player or NPC id.stringinstance: ItemDefinition instance name from scripts.numberamount: Amount to remove.
Returns boolean
True on success.