OBJ_TO_NET
Returns the network ID of the given object.
Hash
0x99BFDC94A603E541Runtime name
ObjToNetNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x99BFDC94A603E541Signature
int OBJ_TO_NET(Object object);Parameters
| Name | Type | Description |
|---|---|---|
object | Object | — |
Returns int
Description
Returns the network ID of the given object.
Usage
local retval = ObjToNet(object)
-- always works, by hash
local retval = Citizen.InvokeNative(0x99BFDC94A603E541, object, Citizen.ResultAsInteger())JavaScript and C#
const retval = ObjToNet(object);
// by hash
const retval = Citizen.invokeNative('0x99BFDC94A603E541', object, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x99BFDC94A603E541, object);See also
VEH_TO_NETReturns the network ID of the given vehicle.PED_TO_NETReturns the network ID of the given ped._PROPSET_TO_NET
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.