entity.get_player_weapon
Returns the entity index of the player's active weapon, or nil if the player is not alive, dormant, etc.
entity.get_player_weapon(player: number): number
Arguments
Name | Description | Type |
---|---|---|
player | The player index to get the weapon of. | number |
Returns number