The Lab
TASK native

_TASK_VEHICLE_IS_HEADING_TO_COORDS

returns BOOL4 paramsbuild 1207

Returns true if the drive task of vehicle is heading to (x, y, z).

Signature

C
BOOL _TASK_VEHICLE_IS_HEADING_TO_COORDS(Vehicle vehicle, float x, float y, float z); // 0x583AE9AF9CEE0958 b1207

Parameters

#NameType
1vehicleVehicle
2xfloat
3yfloat
4zfloat

Facts

Facts about _TASK_VEHICLE_IS_HEADING_TO_COORDS
Name
_TASK_VEHICLE_IS_HEADING_TO_COORDS
Hash
0x583AE9AF9CEE0958
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(0x583AE9AF9CEE0958, -- _TASK_VEHICLE_IS_HEADING_TO_COORDS
  0, -- Vehicle vehicle
  0.0, -- float x
  0.0, -- float y
  0.0 -- float z
)
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("0x583AE9AF9CEE0958", // _TASK_VEHICLE_IS_HEADING_TO_COORDS
  0, // Vehicle vehicle
  0.0, // float x
  0.0, // float y
  0.0, // float z
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x583AE9AF9CEE0958, // _TASK_VEHICLE_IS_HEADING_TO_COORDS
  0, // Vehicle vehicle
  0.0f, // float x
  0.0f, // float y
  0.0f // float z
);
All TASK natives

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