RedM Natives

IS_PED_USING_SCENARIO_HASH

Equivalent to IS_PED_USING_SCENARIO from V but takes a hash instead of a string.

Hash0x34D6AC1157C8226C
Runtime nameIsPedUsingScenarioHash
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL IS_PED_USING_SCENARIO_HASH(Ped ped, Hash scenarioHash);

Parameters

NameTypeDescription
pedPed—
scenarioHashHash—

Returns BOOL

Description

Equivalent to IS_PED_USING_SCENARIO from V but takes a hash instead of a string.

Usage

Lua
local retval = IsPedUsingScenarioHash(ped, scenarioHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x34D6AC1157C8226C, ped, scenarioHash, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedUsingScenarioHash(ped, scenarioHash);

// by hash
const retval = Citizen.invokeNative('0x34D6AC1157C8226C', ped, scenarioHash, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x34D6AC1157C8226C, ped, scenarioHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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