PED_TO_NET
Returns the network ID of the given ped.
Hash
0x0EDEC3C276198689Runtime name
PedToNetNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x0EDEC3C276198689Signature
int PED_TO_NET(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns int
Description
Returns the network ID of the given ped.
Usage
local retval = PedToNet(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0EDEC3C276198689, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = PedToNet(ped);
// by hash
const retval = Citizen.invokeNative('0x0EDEC3C276198689', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x0EDEC3C276198689, ped);See also
VEH_TO_NETReturns the network ID of the given vehicle.OBJ_TO_NETReturns the network ID of the given object._PROPSET_TO_NET
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.