cs_get_weaponbox_item
Syntax
native cs_get_weaponbox_item(weaponboxIndex);
Usage
| Parameter | Description |
|---|---|
| weaponboxIndex | Weaponbox entity index |
Description
Returns the weapon entity index that was packed into a weaponbox.
Return
Weapon entity index on success or 0 if no weapon can be found
Error
If a non-weaponbox entity is provided or the entity is invalid, an error will be thrown.