The Lab
VEHICLE native

_SET_VEHICLE_ROAD_LINK_FORCED

returns void7 paramsbuild 1207

Based on its name and signature, here is our best reading:

Forces vehicle onto the road link between the two given points.

Signature

C
void _SET_VEHICLE_ROAD_LINK_FORCED(Vehicle vehicle, float startX, float startY, float startZ, float endX, float endY, float endZ); // 0xC2E62678D602853C b1207

Parameters

#NameType
1vehicleVehicle
2startXfloat
3startYfloat
4startZfloat
5endXfloat
6endYfloat
7endZfloat

Facts

Facts about _SET_VEHICLE_ROAD_LINK_FORCED
Name
_SET_VEHICLE_ROAD_LINK_FORCED
Hash
0xC2E62678D602853C
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xC2E62678D602853C, -- _SET_VEHICLE_ROAD_LINK_FORCED
  0, -- Vehicle vehicle
  0.0, -- float startX
  0.0, -- float startY
  0.0, -- float startZ
  0.0, -- float endX
  0.0, -- float endY
  0.0 -- float endZ
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC2E62678D602853C", // _SET_VEHICLE_ROAD_LINK_FORCED
  0, // Vehicle vehicle
  0.0, // float startX
  0.0, // float startY
  0.0, // float startZ
  0.0, // float endX
  0.0, // float endY
  0.0 // float endZ
);
C#
Function.Call((Hash)0xC2E62678D602853C, // _SET_VEHICLE_ROAD_LINK_FORCED
  0, // Vehicle vehicle
  0.0f, // float startX
  0.0f, // float startY
  0.0f, // float startZ
  0.0f, // float endX
  0.0f, // float endY
  0.0f // float endZ
);
All VEHICLE natives

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