NetworkClient

networkHasControlOfEntity

NETWORK_HAS_CONTROL_OF_ENTITY0x01BF60A500E28887

The GTA V native NETWORK_HAS_CONTROL_OF_ENTITY of the NETWORK namespace, as LS:MP client scripts call it: the global function networkHasControlOfEntity, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_HAS_CONTROL_OF_ENTITY(Entity entity)
Hash
0x01BF60A500E28887

Open in the interactive natives reference