PedClient

isPedInAnyTrain

IS_PED_IN_ANY_TRAIN0x6F972C1AB75A1ED0

The 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.

SignatureJavaScript
isPedInAnyTrain(ped: Ped): boolean
SignatureLua
isPedInAnyTrain(ped: Ped): boolean

Usage

JavaScript
const result = isPedInAnyTrain(ped);
Lua
local result = isPedInAnyTrain(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_IN_ANY_TRAIN(Ped ped)
Hash
0x6F972C1AB75A1ED0

Open in the interactive natives reference