_HAS_SCENARIO_TYPE_LOADED
Returns true once the assets for the scenario type scenarioType have loaded.
Signature
BOOL _HAS_SCENARIO_TYPE_LOADED(Hash scenarioType, BOOL p1); // 0x9427C94D2E4094A4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | scenarioType | Hash |
| 2 | p1 | BOOL |
Facts
| Name | _HAS_SCENARIO_TYPE_LOADED |
|---|---|
| Hash | 0x9427C94D2E4094A4 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x9427C94D2E4094A4, -- _HAS_SCENARIO_TYPE_LOADED
GetHashKey("name"), -- Hash scenarioType
false -- BOOL p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x9427C94D2E4094A4", // _HAS_SCENARIO_TYPE_LOADED
GetHashKey("name"), // Hash scenarioType
false, // BOOL p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x9427C94D2E4094A4, // _HAS_SCENARIO_TYPE_LOADED
(uint)API.GetHashKey("name"), // Hash scenarioType
false // BOOL p1
);Related STREAMING natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.