Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using GTA;
- using GTA.Native;
- using System;
- namespace ScenarioGroups
- {
- public class Main : Script
- {
- public Main()
- {
- Groups();
- }
- void SetScenarioGroupEnabled(string scenarioGroup, bool toggle)
- {
- if (Function.Call<bool>(Hash.DOES_SCENARIO_GROUP_EXIST, scenarioGroup))
- {
- if (!Function.Call<bool>(Hash.IS_SCENARIO_GROUP_ENABLED, scenarioGroup))
- {
- Function.Call(Hash.SET_SCENARIO_GROUP_ENABLED, scenarioGroup, toggle);
- }
- }
- }
- void Groups()
- {
- SetScenarioGroupEnabled("AMMUNATION", true);
- SetScenarioGroupEnabled("CLUB_CYPRESS_FLATS_WAREHOUSE", true);
- SetScenarioGroupEnabled("CLUB_DEL_PERRO_BUILDING", true);
- SetScenarioGroupEnabled("CLUB_ELYSIAN_ISLAND_WAREHOUSE", true);
- SetScenarioGroupEnabled("CLUB_LA_MESA_WAREHOUSE", true);
- SetScenarioGroupEnabled("CLUB_LSIA_WAREHOUSE", true);
- SetScenarioGroupEnabled("CLUB_MISSION_ROW_BUILDING", true);
- SetScenarioGroupEnabled("CLUB_STRAWBERRY_WAREHOUSE", true);
- SetScenarioGroupEnabled("CLUB_WEST_VINEWOOD_BUILDING", true);
- SetScenarioGroupEnabled("COUNTRYSIDE_BANKS", true);
- SetScenarioGroupEnabled("FACILITY_CANNON", true);
- SetScenarioGroupEnabled("FACILITY_MAIN_1", true);
- SetScenarioGroupEnabled("FACILITY_MAIN_2", true);
- SetScenarioGroupEnabled("FACILITY_MAIN_3", true);
- SetScenarioGroupEnabled("FORT_ZANCUDO_GUARDS", true);
- SetScenarioGroupEnabled("GUARDS_AT_PRISON", true);
- SetScenarioGroupEnabled("LOST_HANGOUT", true);
- SetScenarioGroupEnabled("MP_POLICE2", true);
- SetScenarioGroupEnabled("PALETO_BANK", true);
- SetScenarioGroupEnabled("PALETO_COPS", true);
- SetScenarioGroupEnabled("POLICE_AT_COURT", true);
- SetScenarioGroupEnabled("POLICE_POUND1", true);
- SetScenarioGroupEnabled("POLICE_POUND2", true);
- SetScenarioGroupEnabled("POLICE_POUND3", true);
- SetScenarioGroupEnabled("POLICE_POUND4", true);
- SetScenarioGroupEnabled("POLICE_POUND5", true);
- SetScenarioGroupEnabled("PRISON_TRANSPORT", true);
- SetScenarioGroupEnabled("PRISON_TOWERS", true);
- SetScenarioGroupEnabled("SANDY_COPS", true);
- SetScenarioGroupEnabled("SCRAP_SECURITY", true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement