The Lab
PED native

_GET_ACTIVE_DYNAMIC_SCENARIO_2

returns Hash1 parambuild 1207

Based on its name and signature, here is our best reading:

A variant of _GET_ACTIVE_DYNAMIC_SCENARIO that returns a scenario hash for ped; how they differ is unclear.

Signature

C
Hash _GET_ACTIVE_DYNAMIC_SCENARIO_2(Ped ped); // 0xC22AA08A8ADB87D4 b1207

Parameters

#NameType
1pedPed

Facts

Facts about _GET_ACTIVE_DYNAMIC_SCENARIO_2
Name
_GET_ACTIVE_DYNAMIC_SCENARIO_2
Hash
0xC22AA08A8ADB87D4
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0xC22AA08A8ADB87D4, -- _GET_ACTIVE_DYNAMIC_SCENARIO_2
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xC22AA08A8ADB87D4", // _GET_ACTIVE_DYNAMIC_SCENARIO_2
  PlayerPedId(), // Ped ped
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xC22AA08A8ADB87D4, // _GET_ACTIVE_DYNAMIC_SCENARIO_2
  API.PlayerPedId() // Ped ped
);
All PED natives

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