_REQUEST_SCENARIO_TYPE
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
int _REQUEST_SCENARIO_TYPE(Hash scenarioType, int p1, Hash entityModel, Hash conditionalAnim); // 0x19A6BE7D9C6884D3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | scenarioType | Hash |
| 2 | p1 | int |
| 3 | entityModel | Hash |
| 4 | conditionalAnim | Hash |
Facts
| 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.
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)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)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
);Related STREAMING natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.