RedM Natives

PED_TO_NET

Returns the network ID of the given ped.

Hash0x0EDEC3C276198689
Runtime namePedToNet
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0EDEC3C276198689

Signature

int PED_TO_NET(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Description

Returns the network ID of the given ped.

Usage

Lua
local retval = PedToNet(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x0EDEC3C276198689, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = PedToNet(ped);

// by hash
const retval = Citizen.invokeNative('0x0EDEC3C276198689', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x0EDEC3C276198689, ped);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.