The Lab
STREAMING native

_REQUEST_SCENARIO_TYPE

returns int4 paramsbuild 1207

Requests the assets needed for the scenario type scenarioType, optionally for a specific entity model and conditional animation. Returns an integer result.

Wait for _HAS_SCENARIO_TYPE_LOADED before starting the scenario.

Signature

C
int _REQUEST_SCENARIO_TYPE(Hash scenarioType, int p1, Hash entityModel, Hash conditionalAnim); // 0x19A6BE7D9C6884D3 b1207

Parameters

#NameType
1scenarioTypeHash
2p1int
3entityModelHash
4conditionalAnimHash

Facts

Facts about _REQUEST_SCENARIO_TYPE
Name
_REQUEST_SCENARIO_TYPE
Hash
0x19A6BE7D9C6884D3
Namespace
Returns
int
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(0x19A6BE7D9C6884D3, -- _REQUEST_SCENARIO_TYPE
  GetHashKey("name"), -- Hash scenarioType
  0, -- int p1
  GetHashKey("a_c_horse_arabian_white"), -- Hash entityModel
  GetHashKey("name"), -- Hash conditionalAnim
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x19A6BE7D9C6884D3", // _REQUEST_SCENARIO_TYPE
  GetHashKey("name"), // Hash scenarioType
  0, // int p1
  GetHashKey("a_c_horse_arabian_white"), // Hash entityModel
  GetHashKey("name"), // Hash conditionalAnim
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x19A6BE7D9C6884D3, // _REQUEST_SCENARIO_TYPE
  (uint)API.GetHashKey("name"), // Hash scenarioType
  0, // int p1
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash entityModel
  (uint)API.GetHashKey("name") // Hash conditionalAnim
);
All STREAMING natives

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