RedM Natives

GET_TRAIN_CARRIAGE

Hash0xD0FB093A4CDB932C
Runtime nameGetTrainCarriage
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x08AAFD0814722BC3

Signature

Vehicle GET_TRAIN_CARRIAGE(Vehicle train, int trailerNumber);

Parameters

NameTypeDescription
trainVehicle—
trailerNumberint—

Returns Vehicle

Usage

Lua
local retval = GetTrainCarriage(train, trailerNumber)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD0FB093A4CDB932C, train, trailerNumber, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetTrainCarriage(train, trailerNumber);

// by hash
const retval = Citizen.invokeNative('0xD0FB093A4CDB932C', train, trailerNumber, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xD0FB093A4CDB932C, train, trailerNumber);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.