PedClient

isPedOnAnyBike

IS_PED_ON_ANY_BIKE0x94495889E22C6479

The GTA V native IS_PED_ON_ANY_BIKE of the PED namespace, as LS:MP client scripts call it: the global function isPedOnAnyBike, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_ON_ANY_BIKE(Ped ped)
Hash
0x94495889E22C6479

Open in the interactive natives reference