IS_PED_USING_SCENARIO_HASH
Equivalent to IS_PED_USING_SCENARIO from V but takes a hash instead of a string.
Hash
0x34D6AC1157C8226CRuntime name
IsPedUsingScenarioHashNamespacePED
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL IS_PED_USING_SCENARIO_HASH(Ped ped, Hash scenarioHash);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
scenarioHash | Hash | — |
Returns BOOL
Description
Equivalent to IS_PED_USING_SCENARIO from V but takes a hash instead of a string.
Usage
local retval = IsPedUsingScenarioHash(ped, scenarioHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0x34D6AC1157C8226C, ped, scenarioHash, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedUsingScenarioHash(ped, scenarioHash);
// by hash
const retval = Citizen.invokeNative('0x34D6AC1157C8226C', ped, scenarioHash, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x34D6AC1157C8226C, ped, scenarioHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.