setScenarioGroupEnabled
SET_SCENARIO_GROUP_ENABLED0x02C8E5B49848664EThe GTA V native SET_SCENARIO_GROUP_ENABLED of the TASK namespace, as LS:MP client scripts call it: the global function setScenarioGroupEnabled, in JavaScript and in Lua.
setScenarioGroupEnabled(scenarioGroup: string, enabled: boolean): voidsetScenarioGroupEnabled(scenarioGroup: string, enabled: boolean)Usage
JavaScript
setScenarioGroupEnabled(scenarioGroup, enabled);Lua
setScenarioGroupEnabled(scenarioGroup, enabled)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scenarioGroup | string | string | string |
enabled | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Full list of scenario groups used in scripts by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenarioGroupNames.json
Occurrences in the b617d scripts: https://pastebin.com/Tvg2PRHU
Reference
- Namespace
- Tasks TASK
- In the game
void SET_SCENARIO_GROUP_ENABLED(const char* scenarioGroup, BOOL enabled)- Hash
0x02C8E5B49848664E