IS_SCENARIO_TYPE_ENABLED
Returns true if the scenario type scenarioType is enabled.
Signature
BOOL IS_SCENARIO_TYPE_ENABLED(const char* scenarioType); // 0x3A815DB3EA088722 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | scenarioType | const char* |
Facts
| Name | IS_SCENARIO_TYPE_ENABLED |
|---|---|
| Hash | 0x3A815DB3EA088722 |
| 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(0x3A815DB3EA088722, -- IS_SCENARIO_TYPE_ENABLED
"text" -- const char* scenarioType
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x3A815DB3EA088722", // IS_SCENARIO_TYPE_ENABLED
"text", // const char* scenarioType
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x3A815DB3EA088722, // IS_SCENARIO_TYPE_ENABLED
"text" // const char* scenarioType
);Related TASK natives
- IS_SCENARIO_GROUP_ENABLED
- IS_SCENARIO_OCCUPIED
- _GET_SCENARIO_POINT_TYPE_PED_IS_USING
- _IS_SCENARIO_GROUP_ENABLED_HASH
- _SET_SCENARIO_TYPE_ENABLED_HASH
- SET_SCENARIO_TYPE_ENABLED
- IS_PED_ACTIVE_IN_SCENARIO
- IS_PED_EXITING_SCENARIO
- IS_PED_SCENARIO_REACT_LOOKING
- _GET_SCENARIO_POINT_PED_IS_USING
- _GET_SCENARIO_POINT_TYPE
- _IS_SCENARIO_IN_USE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.