native
cs_get_user_weapon_entity
Syntax
native cs_get_user_weapon_entity(playerIndex);
Description
Returns active weapon entity.
Parameters
| playerIndex | Player index |
|---|
Return
Weapon entity index on success or 0 if there is no active weapon
Error
If the client index is not within the range of 1 to
maxClients, or the client is not connected, an error will be
thrown.