RedM Natives

IS_PED_IN_ANY_TRAIN

Hash0x6F972C1AB75A1ED0
Runtime nameIsPedInAnyTrain
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6F972C1AB75A1ED0

Signature

BOOL IS_PED_IN_ANY_TRAIN(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns BOOL

Usage

Lua
local retval = IsPedInAnyTrain(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x6F972C1AB75A1ED0, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedInAnyTrain(ped);

// by hash
const retval = Citizen.invokeNative('0x6F972C1AB75A1ED0', ped, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x6F972C1AB75A1ED0, ped);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.