The Lab
NETWORK native

NET_TO_OBJ

returns Object1 parambuild 1207

Returns the object handle for the given network id.

Signature

C
Object NET_TO_OBJ(int netHandle); // 0xD8515F5FEA14CB3F b1207

Parameters

#NameType
1netHandleint

Facts

Facts about NET_TO_OBJ
Name
NET_TO_OBJ
Hash
0xD8515F5FEA14CB3F
Namespace
Returns
Object
Game build
1207

Examples

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

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

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