IS_SCENARIO_TYPE_ENABLED
Hash
0x3A815DB3EA088722Runtime name
IsScenarioTypeEnabledNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x3A815DB3EA088722Signature
BOOL IS_SCENARIO_TYPE_ENABLED(const char* scenarioType);Parameters
| Name | Type | Description |
|---|---|---|
scenarioType | const char* | — |
Returns BOOL
Usage
local retval = IsScenarioTypeEnabled(scenarioType)
-- always works, by hash
local retval = Citizen.InvokeNative(0x3A815DB3EA088722, scenarioType, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsScenarioTypeEnabled(scenarioType);
// by hash
const retval = Citizen.invokeNative('0x3A815DB3EA088722', scenarioType, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x3A815DB3EA088722, scenarioType);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.