The Lab
TASK native

TASK_RIDE_TRAIN

returns void4 paramsbuild 1207

Tasks ped to ride train using the scenario point scenarioPoint.

Signature

C
void TASK_RIDE_TRAIN(Ped ped, Vehicle train, int scenarioPoint, Hash scenarioHash); // 0x37FB1C870E2EC2C6 b1207

Parameters

#NameType
1pedPed
2trainVehicle
3scenarioPointint
4scenarioHashHash

Facts

Facts about TASK_RIDE_TRAIN
Name
TASK_RIDE_TRAIN
Hash
0x37FB1C870E2EC2C6
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(0x37FB1C870E2EC2C6, -- TASK_RIDE_TRAIN
  PlayerPedId(), -- Ped ped
  0, -- Vehicle train
  0, -- int scenarioPoint
  GetHashKey("name") -- Hash scenarioHash
)
JavaScript
Citizen.invokeNative("0x37FB1C870E2EC2C6", // TASK_RIDE_TRAIN
  PlayerPedId(), // Ped ped
  0, // Vehicle train
  0, // int scenarioPoint
  GetHashKey("name") // Hash scenarioHash
);
C#
Function.Call((Hash)0x37FB1C870E2EC2C6, // TASK_RIDE_TRAIN
  API.PlayerPedId(), // Ped ped
  0, // Vehicle train
  0, // int scenarioPoint
  (uint)API.GetHashKey("name") // Hash scenarioHash
);
All TASK natives

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