PedClient

isPedInAnyPoliceVehicle

IS_PED_IN_ANY_POLICE_VEHICLE0x0BD04E29640C9C12

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_IN_ANY_POLICE_VEHICLE(Ped ped)
Hash
0x0BD04E29640C9C12

Open in the interactive natives reference