isPedInAnyTrain
IS_PED_IN_ANY_TRAIN0x6F972C1AB75A1ED0The GTA V native IS_PED_IN_ANY_TRAIN of the PED namespace, as LS:MP client scripts call it: the global function isPedInAnyTrain, in JavaScript and in Lua.
isPedInAnyTrain(ped: Ped): booleanisPedInAnyTrain(ped: Ped): booleanUsage
JavaScript
const result = isPedInAnyTrain(ped);Lua
local result = isPedInAnyTrain(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_IN_ANY_TRAIN(Ped ped)- Hash
0x6F972C1AB75A1ED0