The Lab
PATH native

IS_POINT_ON_ROAD

returns BOOL4 paramsbuild 1207

Returns true if the given point lies on a road.

Signature

C
BOOL IS_POINT_ON_ROAD(float x, float y, float z, Vehicle vehicle); // 0x125BF4ABFC536B09 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4vehicleVehicle

Facts

Facts about IS_POINT_ON_ROAD
Name
IS_POINT_ON_ROAD
Hash
0x125BF4ABFC536B09
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 = Citizen.InvokeNative(0x125BF4ABFC536B09, -- IS_POINT_ON_ROAD
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0 -- Vehicle vehicle
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x125BF4ABFC536B09", // IS_POINT_ON_ROAD
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // Vehicle vehicle
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x125BF4ABFC536B09, // IS_POINT_ON_ROAD
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0 // Vehicle vehicle
);
All PATH natives

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