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