RedM Natives

IS_PED_DEFENSIVE_AREA_ACTIVE

Hash0xBA63D9FE45412247
Runtime nameIsPedDefensiveAreaActive
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBA63D9FE45412247

Signature

BOOL IS_PED_DEFENSIVE_AREA_ACTIVE(Ped ped, BOOL p1);

Parameters

NameTypeDescription
pedPed—
p1BOOL—

Returns BOOL

Usage

Lua
local retval = IsPedDefensiveAreaActive(ped, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBA63D9FE45412247, ped, p1, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedDefensiveAreaActive(ped, p1);

// by hash
const retval = Citizen.invokeNative('0xBA63D9FE45412247', ped, p1, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xBA63D9FE45412247, ped, p1);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.