{"hash":"0x125BF4ABFC536B09","ns":"PATH","name":"IS_POINT_ON_ROAD","slug":"IS_POINT_ON_ROAD","official":true,"named":true,"luaName":"IsPointOnRoad","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"vehicle","type":"Vehicle"}],"summary":"Gets a value indicating whether the specified position is on a road.","descriptions":[{"source":"alloc8or","format":"text","body":"Gets a value indicating whether the specified position is on a road."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x125BF4ABFC536B09","gtaJhash":"0xCF198055","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PATH/IS_POINT_ON_ROAD","markdownUrl":"https://natives.borderlinerp.com/natives/PATH/IS_POINT_ON_ROAD.md","snippets":{"lua":"local retval = IsPointOnRoad(x, y, z, vehicle)","luaInvoke":"local retval = Citizen.InvokeNative(0x125BF4ABFC536B09, x, y, z, vehicle, Citizen.ReturnResultAnyway())","js":"const retval = IsPointOnRoad(x, y, z, vehicle);","jsInvoke":"const retval = Citizen.invokeNative('0x125BF4ABFC536B09', x + 0.0000001, y + 0.0000001, z + 0.0000001, vehicle, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x125BF4ABFC536B09, x, y, z, vehicle);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}