NetworkClient

pedToNet

PED_TO_NET0x0EDEC3C276198689

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

SignatureJavaScript
pedToNet(ped: Ped): number
SignatureLua
pedToNet(ped: Ped): integer

Usage

JavaScript
const result = pedToNet(ped);
Lua
local result = pedToNet(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

gets the network id of a ped

Reference

Namespace
Network NETWORK
In the game
int PED_TO_NET(Ped ped)
Hash
0x0EDEC3C276198689

Open in the interactive natives reference