_CREATE_WAYPOINT_PATH
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
BOOL _CREATE_WAYPOINT_PATH(const char* pathName, Any* p1, int nodes, int p3); // 0x5C885E0978B6AD60 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | pathName | const char* |
| 2 | p1 | Any* (out pointer) |
| 3 | nodes | int |
| 4 | p3 | int |
Facts
| 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.
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
-- ...
endconst [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) {
// ...
}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>();Related TASK natives
- _CREATE_HERB_COMPOSITES
- WAYPOINT_RECORDING_GET_CLOSEST_WAYPOINT
- _CALCULATE_WAYPOINT_DISTANCE_FROM_START
- _SET_PED_PATH_AVOID_TRAFFIC
- _SET_PED_PATH_LADDER_COST_MODIFIER
- _SET_PED_PATH_MAY_ENTER_DEEP_WATER
- _SET_PED_PATH_MAY_USE_SLIDING_SURFACES
- _SET_PED_PATH_NEVER_USE_INTERIORS
- _SET_PED_PATH_PREFER_HORSE_WALKABLE
- _SET_PED_PATH_PREFER_STAY_IN_WATER
- _SET_PED_PATH_PREFER_TO_AVOID_FOLIAGE
- _SET_PED_PATH_PREFER_TO_AVOID_MUD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.