isPedInAnyPoliceVehicle
IS_PED_IN_ANY_POLICE_VEHICLE0x0BD04E29640C9C12The 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.
isPedInAnyPoliceVehicle(ped: Ped): booleanisPedInAnyPoliceVehicle(ped: Ped): booleanUsage
JavaScript
const result = isPedInAnyPoliceVehicle(ped);Lua
local result = isPedInAnyPoliceVehicle(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_POLICE_VEHICLE(Ped ped)- Hash
0x0BD04E29640C9C12