The Lab
PED native

IS_PED_USING_SCENARIO_HASH

returns BOOL2 paramsbuild 1207

Returns true if ped is using the scenario scenarioHash.

Signature

C
BOOL IS_PED_USING_SCENARIO_HASH(Ped ped, Hash scenarioHash); // 0x34D6AC1157C8226C b1207

Parameters

#NameType
1pedPed
2scenarioHashHash

Facts

Facts about IS_PED_USING_SCENARIO_HASH
Name
IS_PED_USING_SCENARIO_HASH
Hash
0x34D6AC1157C8226C
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x34D6AC1157C8226C, -- IS_PED_USING_SCENARIO_HASH
  PlayerPedId(), -- Ped ped
  GetHashKey("name") -- Hash scenarioHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x34D6AC1157C8226C", // IS_PED_USING_SCENARIO_HASH
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash scenarioHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x34D6AC1157C8226C, // IS_PED_USING_SCENARIO_HASH
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash scenarioHash
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.