netToObj
NET_TO_OBJ0xD8515F5FEA14CB3FThe GTA V native NET_TO_OBJ of the NETWORK namespace, as LS:MP client scripts call it: the global function netToObj, in JavaScript and in Lua.
netToObj(netHandle: number): ObjectnetToObj(netHandle: integer): ObjectUsage
JavaScript
const object = netToObj(netHandle);Lua
local object = netToObj(netHandle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
netHandle | int | number | integer |
Returns
Object JavaScript number, Lua integerGame handle of an object (prop). Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
gets the object id of a network id
Reference
- Namespace
- Network NETWORK
- In the game
Object NET_TO_OBJ(int netHandle)- Hash
0xD8515F5FEA14CB3F