RedM Natives

SET_PED_WAYPOINT_ROUTE_OFFSET

Hash0xED98E10B0AFCE4B4
Runtime nameSetPedWaypointRouteOffset
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xED98E10B0AFCE4B4

Signature

BOOL SET_PED_WAYPOINT_ROUTE_OFFSET(Ped ped, float p1, float p2, float p3);

Parameters

NameTypeDescription
pedPed—
p1float—
p2float—
p3float—

Returns BOOL

Usage

Lua
local retval = SetPedWaypointRouteOffset(ped, p1, p2, p3)

-- always works, by hash
local retval = Citizen.InvokeNative(0xED98E10B0AFCE4B4, ped, p1, p2, p3, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = SetPedWaypointRouteOffset(ped, p1, p2, p3);

// by hash
const retval = Citizen.invokeNative('0xED98E10B0AFCE4B4', ped, p1 + 0.0000001, p2 + 0.0000001, p3 + 0.0000001, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xED98E10B0AFCE4B4, ped, p1, p2, p3);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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