RedM Natives

NET_TO_PED

gets the ped id of a network id

Hash0xBDCD95FC216A8B3E
Runtime nameNetToPed
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBDCD95FC216A8B3E

Signature

Ped NET_TO_PED(int netHandle);

Parameters

NameTypeDescription
netHandleint—

Returns Ped

Description

gets the ped id of a network id

Usage

Lua
local retval = NetToPed(netHandle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBDCD95FC216A8B3E, netHandle, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetToPed(netHandle);

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

Sources

alloc8or RDR3 NativeDB

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