_CREATE_WAYPOINT_PATH
Hash
0x5C885E0978B6AD60Runtime name
CreateWaypointPathNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _CREATE_WAYPOINT_PATH(const char* pathName, Any* p1, int nodes, int p3);Parameters
| Name | Type | Description |
|---|---|---|
pathName | const char* | — |
p1 | Any* | — |
nodes | int | — |
p3 | int | — |
Returns BOOL
Usage
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#
const [retval, p1] = CreateWaypointPath(pathName, nodes, p3);
// by hash
const [retval, p1] = Citizen.invokeNative('0x5C885E0978B6AD60', pathName, Citizen.pointerValueInt(), nodes, p3, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.