_NAVMESH_REQUESTED_PATH_WAYPOINT_BY_INDEX
Returns a vector3 waypoint at the specified index for a path.
Hash
0x430F8319AE56C8A9Runtime name
NavmeshRequestedPathWaypointByIndexNamespacePATH
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Vector3 _NAVMESH_REQUESTED_PATH_WAYPOINT_BY_INDEX(int path, int waypointIndex);Parameters
| Name | Type | Description |
|---|---|---|
path | int | — |
waypointIndex | int | — |
Returns Vector3
Description
Returns a vector3 waypoint at the specified index for a path. Use _NAVMESH_REQUESTED_PATH_NUM_WAYPOINTS to get available indexes.
Usage
local retval = NavmeshRequestedPathWaypointByIndex(path, waypointIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x430F8319AE56C8A9, path, waypointIndex, Citizen.ResultAsVector())JavaScript and C#
const retval = NavmeshRequestedPathWaypointByIndex(path, waypointIndex);
// by hash
const retval = Citizen.invokeNative('0x430F8319AE56C8A9', path, waypointIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());Vector3 retval = Function.Call<Vector3>((Hash)0x430F8319AE56C8A9, path, waypointIndex);- 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.