The Lab
NETWORK native

NET_TO_ENT

returns Entity1 parambuild 1207

Returns the entity handle for the given network id.

Check NETWORK_DOES_NETWORK_ID_EXIST first.

Signature

C
Entity NET_TO_ENT(int netHandle); // 0xBFFEAB45A9A9094A b1207

Parameters

#NameType
1netHandleint

Facts

Facts about NET_TO_ENT
Name
NET_TO_ENT
Hash
0xBFFEAB45A9A9094A
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(0xBFFEAB45A9A9094A, -- NET_TO_ENT
  0, -- int netHandle
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0xBFFEAB45A9A9094A", // NET_TO_ENT
  0, // int netHandle
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0xBFFEAB45A9A9094A, // NET_TO_ENT
  0 // int netHandle
);
All NETWORK natives

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