RedM Natives

GET_PED_WAYPOINT_DISTANCE

Hash0xE6A877C64CAF1BC5
Runtime nameGetPedWaypointDistance
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE6A877C64CAF1BC5

Signature

float GET_PED_WAYPOINT_DISTANCE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns float

Usage

Lua
local retval = GetPedWaypointDistance(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xE6A877C64CAF1BC5, ped, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetPedWaypointDistance(ped);

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

Sources

alloc8or RDR3 NativeDB

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