PlayerClient

isPlayerFreeAimingAtEntity

IS_PLAYER_FREE_AIMING_AT_ENTITY0x3C06B5C839B38F7B

The GTA V native IS_PLAYER_FREE_AIMING_AT_ENTITY of the PLAYER namespace, as LS:MP client scripts call it: the global function isPlayerFreeAimingAtEntity, in JavaScript and in Lua.

SignatureJavaScript
isPlayerFreeAimingAtEntity(player: Player, entity: Entity): boolean
SignatureLua
isPlayerFreeAimingAtEntity(player: Player, entity: Entity): boolean

Usage

JavaScript
const result = isPlayerFreeAimingAtEntity(player, entity);
Lua
local result = isPlayerFreeAimingAtEntity(player, entity)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Gets a value indicating whether the specified player is currently aiming freely at the specified entity.

Reference

Namespace
Player PLAYER
In the game
BOOL IS_PLAYER_FREE_AIMING_AT_ENTITY(Player player, Entity entity)
Hash
0x3C06B5C839B38F7B

Open in the interactive natives reference