The Lab
VEHICLE native

IS_THIS_MODEL_A_TRAIN

returns BOOL1 parambuild 1207

Returns true if model is a train model.

Signature

C
BOOL IS_THIS_MODEL_A_TRAIN(Hash model); // 0xFC08C8F8C1EDF174 b1207

Parameters

#NameType
1modelHash

Facts

Facts about IS_THIS_MODEL_A_TRAIN
Name
IS_THIS_MODEL_A_TRAIN
Hash
0xFC08C8F8C1EDF174
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xFC08C8F8C1EDF174, -- IS_THIS_MODEL_A_TRAIN
  GetHashKey("a_c_horse_arabian_white") -- Hash model
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xFC08C8F8C1EDF174", // IS_THIS_MODEL_A_TRAIN
  GetHashKey("a_c_horse_arabian_white"), // Hash model
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xFC08C8F8C1EDF174, // IS_THIS_MODEL_A_TRAIN
  (uint)API.GetHashKey("a_c_horse_arabian_white") // Hash model
);
All VEHICLE natives

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