PedClient

isPedDefensiveAreaActive

IS_PED_DEFENSIVE_AREA_ACTIVE0xBA63D9FE45412247

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

SignatureJavaScript
isPedDefensiveAreaActive(ped: Ped, p1: boolean): boolean
SignatureLua
isPedDefensiveAreaActive(ped: Ped, p1: boolean): boolean

Usage

JavaScript
const result = isPedDefensiveAreaActive(ped, p1);
Lua
local result = isPedDefensiveAreaActive(ped, p1)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1BOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_DEFENSIVE_AREA_ACTIVE(Ped ped, BOOL p1)
Hash
0xBA63D9FE45412247

Open in the interactive natives reference