The Lab
VEHICLE native

GET_TRAIN_CARRIAGE

returns Vehicle2 paramsbuild 1207

Returns carriage trailerNumber of train.

Signature

C
Vehicle GET_TRAIN_CARRIAGE(Vehicle train, int trailerNumber); // 0xD0FB093A4CDB932C b1207

Parameters

#NameType
1trainVehicle
2trailerNumberint

Facts

Facts about GET_TRAIN_CARRIAGE
Name
GET_TRAIN_CARRIAGE
Hash
0xD0FB093A4CDB932C
Namespace
Returns
Vehicle
Game build
1207

Examples

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

Lua
local vehicle = Citizen.InvokeNative(0xD0FB093A4CDB932C, -- GET_TRAIN_CARRIAGE
  0, -- Vehicle train
  0, -- int trailerNumber
  Citizen.ResultAsInteger()
)
print(vehicle)
JavaScript
const vehicle = Citizen.invokeNative("0xD0FB093A4CDB932C", // GET_TRAIN_CARRIAGE
  0, // Vehicle train
  0, // int trailerNumber
  Citizen.resultAsInteger()
);
console.log(vehicle)
C#
int vehicle = Function.Call<int>((Hash)0xD0FB093A4CDB932C, // GET_TRAIN_CARRIAGE
  0, // Vehicle train
  0 // int trailerNumber
);
All VEHICLE natives

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