The Lab
TASK native

_CREATE_WAYPOINT_PATH

returns BOOL4 paramsbuild 1207

Based on its name and signature, here is our best reading:

Creates a waypoint path named pathName from nodes points. Returns true on success.

Signature

C
BOOL _CREATE_WAYPOINT_PATH(const char* pathName, Any* p1, int nodes, int p3); // 0x5C885E0978B6AD60 b1207

Parameters

#NameType
1pathNameconst char*
2p1Any* (out pointer)
3nodesint
4p3int

Facts

Facts about _CREATE_WAYPOINT_PATH
Name
_CREATE_WAYPOINT_PATH
Hash
0x5C885E0978B6AD60
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, p1 = Citizen.InvokeNative(0x5C885E0978B6AD60, -- _CREATE_WAYPOINT_PATH
  "text", -- const char* pathName
  Citizen.PointerValueInt(), -- Any* p1
  0, -- int nodes
  0, -- int p3
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p1] = Citizen.invokeNative("0x5C885E0978B6AD60", // _CREATE_WAYPOINT_PATH
  "text", // const char* pathName
  Citizen.pointerValueInt(), // Any* p1
  0, // int nodes
  0, // int p3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p1Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x5C885E0978B6AD60, // _CREATE_WAYPOINT_PATH
  "text", // const char* pathName
  p1Arg, // Any* p1
  0, // int nodes
  0 // int p3
);
int p1 = p1Arg.GetResult<int>();
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.