RedM Natives

SIMULATED_ROUTE_TRAVEL_TO_POINT

Hash0xA1A3DE1C215C7394
Runtime nameSimulatedRouteTravelToPoint
NamespacePATH
SideClient
NameOfficial
Docs
Since build1207

Signature

void SIMULATED_ROUTE_TRAVEL_TO_POINT(Any p0, float p1, float p2);

Parameters

NameTypeDescription
p0Any—
p1float—
p2float—

Returns void

Usage

Lua
SimulatedRouteTravelToPoint(p0, p1, p2)

-- always works, by hash
Citizen.InvokeNative(0xA1A3DE1C215C7394, p0, p1, p2)
JavaScript and C#
JavaScript
SimulatedRouteTravelToPoint(p0, p1, p2);

// by hash
Citizen.invokeNative('0xA1A3DE1C215C7394', p0, p1 + 0.0000001, p2 + 0.0000001);
C#
Function.Call((Hash)0xA1A3DE1C215C7394, p0, p1, p2);
  • 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.