cs_get_user_weapon_entity

Syntax

native cs_get_user_weapon_entity(playerIndex);

Usage

playerIndex
Player index

Description

Returns active weapon entity.

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.