NetworkClient

netToObj

NET_TO_OBJ0xD8515F5FEA14CB3F

The 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.

SignatureJavaScript
netToObj(netHandle: number): Object
SignatureLua
netToObj(netHandle: integer): Object

Usage

JavaScript
const object = netToObj(netHandle);
Lua
local object = netToObj(netHandle)

Parameters

ParameterTypeJavaScriptLua
netHandleintnumberinteger

Returns

Object JavaScript number, Lua integer

Game 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

Open in the interactive natives reference