isPlayerTargettingEntity
IS_PLAYER_TARGETTING_ENTITY0x7912F7FC4F6264B6The GTA V native IS_PLAYER_TARGETTING_ENTITY of the PLAYER namespace, as LS:MP client scripts call it: the global function isPlayerTargettingEntity, in JavaScript and in Lua.
isPlayerTargettingEntity(player: Player, entity: Entity): booleanisPlayerTargettingEntity(player: Player, entity: Entity): booleanUsage
JavaScript
const result = isPlayerTargettingEntity(player, entity);Lua
local result = isPlayerTargettingEntity(player, entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
entity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Player PLAYER
- In the game
BOOL IS_PLAYER_TARGETTING_ENTITY(Player player, Entity entity)- Hash
0x7912F7FC4F6264B6