item_equip
Arguments
| Type | Name | Description |
|---|---|---|
| short | userid | |
| string | item | either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' |
| long | defindex | |
| bool | canzoom | |
| bool | hassilencer | |
| bool | issilenced | |
| bool | hastracers | |
| short | weptype | see below |
| WEAPONTYPE_UNKNOWN = -1 | ||
| WEAPONTYPE_KNIFE = 0 | ||
| WEAPONTYPE_PISTOL = 1 | ||
| WEAPONTYPE_SUBMACHINEGUN = 2 | ||
| WEAPONTYPE_RIFLE = 3 | ||
| WEAPONTYPE_SHOTGUN = 4 | ||
| WEAPONTYPE_SNIPER_RIFLE = 5 | ||
| WEAPONTYPE_MACHINEGUN = 6 | ||
| WEAPONTYPE_C4 = 7 | ||
| WEAPONTYPE_TASER = 8 | ||
| WEAPONTYPE_GRENADE = 9 | ||
| WEAPONTYPE_HEALTHSHOT = 11 | ||
| bool | ispainted |