stock

cs_is_valid_itemid

Syntax

stock bool:cs_is_valid_itemid(id, bool:weapon_only = false)

Description

Checks whether an item id is not out of bounds.

Parameters

id Item id (CSI_* constants)
weapon_only If true, only the real weapon ids will be checked,
including shield as well

Return

True if item id is valid, false otherwise