NetworkClient

netToPed

NET_TO_PED0xBDCD95FC216A8B3E

The GTA V native NET_TO_PED of the NETWORK namespace, as LS:MP client scripts call it: the global function netToPed, in JavaScript and in Lua.

SignatureJavaScript
netToPed(netHandle: number): Ped
SignatureLua
netToPed(netHandle: integer): Ped

Usage

JavaScript
const ped = netToPed(netHandle);
Lua
local ped = netToPed(netHandle)

Parameters

ParameterTypeJavaScriptLua
netHandleintnumberinteger

Returns

Ped JavaScript number, Lua integer

Game handle of a ped. 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 ped id of a network id

Reference

Namespace
Network NETWORK
In the game
Ped NET_TO_PED(int netHandle)
Hash
0xBDCD95FC216A8B3E

Open in the interactive natives reference