IS_THIS_MODEL_A_TRAIN
Hash
0xFC08C8F8C1EDF174Runtime name
IsThisModelATrainNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xAB935175B22E822BSignature
BOOL IS_THIS_MODEL_A_TRAIN(Hash model);Parameters
| Name | Type | Description |
|---|---|---|
model | Hash | — |
Returns BOOL
Usage
local retval = IsThisModelATrain(model)
-- always works, by hash
local retval = Citizen.InvokeNative(0xFC08C8F8C1EDF174, model, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsThisModelATrain(model);
// by hash
const retval = Citizen.invokeNative('0xFC08C8F8C1EDF174', model, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xFC08C8F8C1EDF174, model);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.