TasksClient

isPedBeingArrested

IS_PED_BEING_ARRESTED0x90A09F3A45FED688

The GTA V native IS_PED_BEING_ARRESTED of the TASK namespace, as LS:MP client scripts call it: the global function isPedBeingArrested, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This function is hard-coded to always return 0.

Reference

Namespace
Tasks TASK
In the game
BOOL IS_PED_BEING_ARRESTED(Ped ped)
Hash
0x90A09F3A45FED688

Open in the interactive natives reference