NET_TO_OBJ
gets the object id of a network id
Hash
0xD8515F5FEA14CB3FRuntime name
NetToObjNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD8515F5FEA14CB3FSignature
Object NET_TO_OBJ(int netHandle);Parameters
| Name | Type | Description |
|---|---|---|
netHandle | int | — |
Returns Object
Description
gets the object id of a network id
Usage
local retval = NetToObj(netHandle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD8515F5FEA14CB3F, netHandle, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetToObj(netHandle);
// by hash
const retval = Citizen.invokeNative('0xD8515F5FEA14CB3F', netHandle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xD8515F5FEA14CB3F, netHandle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.