VehicleClient

isThisModelATrain

IS_THIS_MODEL_A_TRAIN0xAB935175B22E822B

The GTA V native IS_THIS_MODEL_A_TRAIN of the VEHICLE namespace, as LS:MP client scripts call it: the global function isThisModelATrain, in JavaScript and in Lua.

SignatureJavaScript
isThisModelATrain(model: Hash): boolean
SignatureLua
isThisModelATrain(model: Hash): boolean

Usage

JavaScript
const result = isThisModelATrain(model);
Lua
local result = isThisModelATrain(model)

Parameters

ParameterTypeJavaScriptLua
modelHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_THIS_MODEL_A_TRAIN(Hash model)
Hash
0xAB935175B22E822B

Open in the interactive natives reference