doesScenarioGroupExist
DOES_SCENARIO_GROUP_EXIST0xF9034C136C9E00D3The GTA V native DOES_SCENARIO_GROUP_EXIST of the TASK namespace, as LS:MP client scripts call it: the global function doesScenarioGroupExist, in JavaScript and in Lua.
doesScenarioGroupExist(scenarioGroup: string): booleandoesScenarioGroupExist(scenarioGroup: string): booleanUsage
const result = doesScenarioGroupExist(scenarioGroup);local result = doesScenarioGroupExist(scenarioGroup)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scenarioGroup | string | string | string |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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:
"ARMY_GUARD",
"ARMY_HELI",
"Cinema_Downtown",
"Cinema_Morningwood",
"Cinema_Textile",
"City_Banks",
"Countryside_Banks",
"DEALERSHIP",
"GRAPESEED_PLANES",
"KORTZ_SECURITY",
"LOST_BIKERS",
"LSA_Planes",
"LSA_Planes",
"MP_POLICE",
"Observatory_Bikers",
"POLICE_POUND1",
"POLICE_POUND2",
"POLICE_POUND3",
"POLICE_POUND4",
"POLICE_POUND5"
"QUARRY",
"SANDY_PLANES",
"SCRAP_SECURITY",
"SEW_MACHINE",
"SOLOMON_GATE",
"Triathlon_1_Start",
"Triathlon_2_Start",
"Triathlon_3_Start"
Sometimes used with IS_SCENARIO_GROUP_ENABLED:
if (doesScenarioGroupExist("Observatory_Bikers") && (!isScenarioGroupEnabled("Observatory_Bikers"))) {
else if (isScenarioGroupEnabled("BLIMP")) {Reference
- Namespace
- Tasks TASK
- In the game
BOOL DOES_SCENARIO_GROUP_EXIST(const char* scenarioGroup)- Hash
0xF9034C136C9E00D3