RedM Natives

_IS_PATH_FOR_GPS_ON_ROAD

Checks if the GPS route to the waypoint is navigable along a road.

Hash0xF47A1EB2A538A3A3
Runtime nameIsPathForGpsOnRoad
NamespaceMAP
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_IS_GPS_ROUTE_ON_ROAD

Signature

BOOL _IS_PATH_FOR_GPS_ON_ROAD();

Returns BOOL

Description

Checks if the GPS route to the waypoint is navigable along a road.
If a route exists but there is no valid road path, this function returns false.

Usage

Lua
local retval = IsPathForGpsOnRoad()

-- always works, by hash
local retval = Citizen.InvokeNative(0xF47A1EB2A538A3A3, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPathForGpsOnRoad();

// by hash
const retval = Citizen.invokeNative('0xF47A1EB2A538A3A3', Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xF47A1EB2A538A3A3);
  • 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.