cs_get_item_id
native any:cs_get_item_id(const name[], &CsWeaponClassType:classid = CS_WEAPONCLASS_NONE);
| Parameter |
Description |
| name | Alias or classname |
| classid | If item is a weapon, variable to store the associated
weapon class id in (CS_WEAPONCLASS_* constants) |
Returns the item id associated with an item name and its aliases.
The item name is case sensitive an can be with or without
weapon_ and item_ prefixes. This can be a command alias as well.
Values examples: ak47, weapon_ak47, kevlar, item_kevlar, vest, bullpup, ...
Item id (CSI_* constants)