cs_is_valid_itemid
Syntax
stock bool:cs_is_valid_itemid(id, bool:weapon_only = false)
Usage
| Parameter | Description |
|---|---|
| id | Item id (CSI_* constants) |
| weapon_only | If true, only the real weapon ids will be checked, including shield as well |
Description
Checks whether an item id is not out of bounds.
Return
True if item id is valid, false otherwise