The Lab
NETWORK native

NETWORK_GET_ENTITY_FROM_NETWORK_ID

returns Entity1 parambuild 1207

Returns the entity handle for the given network id.

Signature

C
Entity NETWORK_GET_ENTITY_FROM_NETWORK_ID(int netId); // 0xCE4E5D9B0A4FF560 b1207

Parameters

#NameType
1netIdint

Facts

Facts about NETWORK_GET_ENTITY_FROM_NETWORK_ID
Name
NETWORK_GET_ENTITY_FROM_NETWORK_ID
Hash
0xCE4E5D9B0A4FF560
Namespace
Returns
Entity
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local entity = Citizen.InvokeNative(0xCE4E5D9B0A4FF560, -- NETWORK_GET_ENTITY_FROM_NETWORK_ID
  0, -- int netId
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0xCE4E5D9B0A4FF560", // NETWORK_GET_ENTITY_FROM_NETWORK_ID
  0, // int netId
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0xCE4E5D9B0A4FF560, // NETWORK_GET_ENTITY_FROM_NETWORK_ID
  0 // int netId
);
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.