GET_TRAIN_CARRIAGE
Hash
0xD0FB093A4CDB932CRuntime name
GetTrainCarriageNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x08AAFD0814722BC3Signature
Vehicle GET_TRAIN_CARRIAGE(Vehicle train, int trailerNumber);Parameters
| Name | Type | Description |
|---|---|---|
train | Vehicle | — |
trailerNumber | int | — |
Returns Vehicle
Usage
local retval = GetTrainCarriage(train, trailerNumber)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD0FB093A4CDB932C, train, trailerNumber, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetTrainCarriage(train, trailerNumber);
// by hash
const retval = Citizen.invokeNative('0xD0FB093A4CDB932C', train, trailerNumber, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xD0FB093A4CDB932C, train, trailerNumber);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.