RedM Natives

_CREATE_WAYPOINT_PATH

Hash0x5C885E0978B6AD60
Runtime nameCreateWaypointPath
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _CREATE_WAYPOINT_PATH(const char* pathName, Any* p1, int nodes, int p3);

Parameters

NameTypeDescription
pathNameconst char*—
p1Any*—
nodesint—
p3int—

Returns BOOL

Usage

Lua
local retval, p1 = CreateWaypointPath(pathName, nodes, p3)

-- always works, by hash
local retval, p1 = Citizen.InvokeNative(0x5C885E0978B6AD60, pathName, Citizen.PointerValueInt(), nodes, p3, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, p1] = CreateWaypointPath(pathName, nodes, p3);

// by hash
const [retval, p1] = Citizen.invokeNative('0x5C885E0978B6AD60', pathName, Citizen.pointerValueInt(), nodes, p3, Citizen.returnResultAnyway());
C#
var p1 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x5C885E0978B6AD60, pathName, p1, nodes, p3);
// p1.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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