RedM Natives

IS_PED_ACTIVE_IN_SCENARIO

Hash0xAA135F9482C82CC3
Runtime nameIsPedActiveInScenario
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAA135F9482C82CC3

Signature

BOOL IS_PED_ACTIVE_IN_SCENARIO(Ped ped, int scenario);

Parameters

NameTypeDescription
pedPed—
scenarioint—

Returns BOOL

Usage

Lua
local retval = IsPedActiveInScenario(ped, scenario)

-- always works, by hash
local retval = Citizen.InvokeNative(0xAA135F9482C82CC3, ped, scenario, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedActiveInScenario(ped, scenario);

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

Sources

alloc8or RDR3 NativeDB

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