networkGetEntityFromNetworkId
NETWORK_GET_ENTITY_FROM_NETWORK_ID0xCE4E5D9B0A4FF560The GTA V native NETWORK_GET_ENTITY_FROM_NETWORK_ID of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetEntityFromNetworkId, in JavaScript and in Lua.
networkGetEntityFromNetworkId(netId: number): EntitynetworkGetEntityFromNetworkId(netId: integer): EntityUsage
JavaScript
const entity = networkGetEntityFromNetworkId(netId);Lua
local entity = networkGetEntityFromNetworkId(netId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
netId | int | number | integer |
Returns
Entity JavaScript number, Lua integerGame handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Network NETWORK
- In the game
Entity NETWORK_GET_ENTITY_FROM_NETWORK_ID(int netId)- Hash
0xCE4E5D9B0A4FF560