TasksClient

setScenarioGroupEnabled

SET_SCENARIO_GROUP_ENABLED0x02C8E5B49848664E

The 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.

SignatureJavaScript
setScenarioGroupEnabled(scenarioGroup: string, enabled: boolean): void
SignatureLua
setScenarioGroupEnabled(scenarioGroup: string, enabled: boolean)

Usage

JavaScript
setScenarioGroupEnabled(scenarioGroup, enabled);
Lua
setScenarioGroupEnabled(scenarioGroup, enabled)

Parameters

ParameterTypeJavaScriptLua
scenarioGroupstringstringstring
enabledBOOLbooleanboolean

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

Open in the interactive natives reference