Skip to main content

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

NameDescriptionType
playerThe player index to get the weapon of.number

Returns number