isPlayerFreeAimingAtEntity
IS_PLAYER_FREE_AIMING_AT_ENTITY0x3C06B5C839B38F7BThe 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.
isPlayerFreeAimingAtEntity(player: Player, entity: Entity): booleanisPlayerFreeAimingAtEntity(player: Player, entity: Entity): booleanUsage
JavaScript
const result = isPlayerFreeAimingAtEntity(player, entity);Lua
local result = isPlayerFreeAimingAtEntity(player, entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
entity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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