The Lab
VEHICLE native

_SET_MISSION_TRAIN_WARP_TO_COORDS

returns void5 paramsbuild 1207

Warps the mission train to the given coordinates in the given direction.

Signature

C
void _SET_MISSION_TRAIN_WARP_TO_COORDS(Vehicle train, float x, float y, float z, BOOL direction); // 0xC9EA26893C9E4024 b1207

Parameters

#NameType
1trainVehicle
2xfloat
3yfloat
4zfloat
5directionBOOL

Facts

Facts about _SET_MISSION_TRAIN_WARP_TO_COORDS
Name
_SET_MISSION_TRAIN_WARP_TO_COORDS
Hash
0xC9EA26893C9E4024
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(0xC9EA26893C9E4024, -- _SET_MISSION_TRAIN_WARP_TO_COORDS
  0, -- Vehicle train
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  false -- BOOL direction
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xC9EA26893C9E4024", // _SET_MISSION_TRAIN_WARP_TO_COORDS
  0, // Vehicle train
  0.0, // float x
  0.0, // float y
  0.0, // float z
  false // BOOL direction
);
C#
Function.Call((Hash)0xC9EA26893C9E4024, // _SET_MISSION_TRAIN_WARP_TO_COORDS
  0, // Vehicle train
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  false // BOOL direction
);
All VEHICLE natives

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