rg_remove_items_by_slot

Syntax

native rg_remove_items_by_slot(const index, const InventorySlotType:slot, const bool:removeAmmo = true);

Usage

index
Client index
slot
The slot that will be emptied
removeAmmo
Remove ammunition

Description

Remove all the player's stuff in a specific slot.

Return

1 - successful removal of all items in the slot or the slot is empty
0 - if at least one item failed to remove