StreamingClient

isEntityFocus

IS_ENTITY_FOCUS0x2DDFF3FB9075D747

The GTA V native IS_ENTITY_FOCUS of the STREAMING namespace, as LS:MP client scripts call it: the global function isEntityFocus, in JavaScript and in Lua.

SignatureJavaScript
isEntityFocus(entity: Entity): boolean
SignatureLua
isEntityFocus(entity: Entity): boolean

Usage

JavaScript
const result = isEntityFocus(entity);
Lua
local result = isEntityFocus(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Streaming STREAMING
In the game
BOOL IS_ENTITY_FOCUS(Entity entity)
Hash
0x2DDFF3FB9075D747

Open in the interactive natives reference