native

cs_get_weaponbox_item

Syntax

native cs_get_weaponbox_item(weaponboxIndex);

Description

Returns the weapon entity index that was packed into a weaponbox.

Parameters

weaponboxIndex Weaponbox entity index

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.