RedM Natives

NET_TO_OBJ

gets the object id of a network id

Hash0xD8515F5FEA14CB3F
Runtime nameNetToObj
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD8515F5FEA14CB3F

Signature

Object NET_TO_OBJ(int netHandle);

Parameters

NameTypeDescription
netHandleint—

Returns Object

Description

gets the object id of a network id

Usage

Lua
local retval = NetToObj(netHandle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD8515F5FEA14CB3F, netHandle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetToObj(netHandle);

// by hash
const retval = Citizen.invokeNative('0xD8515F5FEA14CB3F', netHandle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xD8515F5FEA14CB3F, netHandle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.