networkHasControlOfEntity
NETWORK_HAS_CONTROL_OF_ENTITY0x01BF60A500E28887The 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.
networkHasControlOfEntity(entity: Entity): booleannetworkHasControlOfEntity(entity: Entity): booleanUsage
JavaScript
const result = networkHasControlOfEntity(entity);Lua
local result = networkHasControlOfEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Network NETWORK
- In the game
BOOL NETWORK_HAS_CONTROL_OF_ENTITY(Entity entity)- Hash
0x01BF60A500E28887