Advertisement
Guest User

sg_v2.4

a guest
Mar 28th, 2019
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.58 KB | None | 0 0
  1. using GTA;
  2. using GTA.Native;
  3. using System;
  4.  
  5. namespace ScenarioGroups
  6. {
  7.     public class Main : Script
  8.     {
  9.         public Main()
  10.         {
  11.             Groups();
  12.         }
  13.  
  14.         void SetScenarioGroupEnabled(string scenarioGroup, bool toggle)
  15.         {
  16.             if (Function.Call<bool>(Hash.DOES_SCENARIO_GROUP_EXIST, scenarioGroup))
  17.             {
  18.                 if (!Function.Call<bool>(Hash.IS_SCENARIO_GROUP_ENABLED, scenarioGroup))
  19.                 {
  20.                     Function.Call(Hash.SET_SCENARIO_GROUP_ENABLED, scenarioGroup, toggle);
  21.                 }
  22.             }
  23.         }
  24.  
  25.         void Groups()
  26.         {
  27.             SetScenarioGroupEnabled("AMMUNATION", true);
  28.  
  29.             SetScenarioGroupEnabled("CLUB_CYPRESS_FLATS_WAREHOUSE", true);
  30.             SetScenarioGroupEnabled("CLUB_DEL_PERRO_BUILDING", true);
  31.             SetScenarioGroupEnabled("CLUB_ELYSIAN_ISLAND_WAREHOUSE", true);
  32.             SetScenarioGroupEnabled("CLUB_LA_MESA_WAREHOUSE", true);
  33.             SetScenarioGroupEnabled("CLUB_LSIA_WAREHOUSE", true);
  34.             SetScenarioGroupEnabled("CLUB_MISSION_ROW_BUILDING", true);
  35.             SetScenarioGroupEnabled("CLUB_STRAWBERRY_WAREHOUSE", true);
  36.             SetScenarioGroupEnabled("CLUB_WEST_VINEWOOD_BUILDING", true);
  37.  
  38.             SetScenarioGroupEnabled("COUNTRYSIDE_BANKS", true);
  39.  
  40.             SetScenarioGroupEnabled("FACILITY_CANNON", true);
  41.             SetScenarioGroupEnabled("FACILITY_MAIN_1", true);
  42.             SetScenarioGroupEnabled("FACILITY_MAIN_2", true);
  43.             SetScenarioGroupEnabled("FACILITY_MAIN_3", true);
  44.  
  45.             SetScenarioGroupEnabled("FORT_ZANCUDO_GUARDS", true);
  46.  
  47.             SetScenarioGroupEnabled("GUARDS_AT_PRISON", true);
  48.  
  49.             SetScenarioGroupEnabled("LOST_HANGOUT", true);
  50.  
  51.             SetScenarioGroupEnabled("MP_POLICE2", true);
  52.  
  53.             SetScenarioGroupEnabled("PALETO_BANK", true);
  54.  
  55.             SetScenarioGroupEnabled("PALETO_COPS", true);
  56.  
  57.             SetScenarioGroupEnabled("POLICE_AT_COURT", true);
  58.  
  59.             SetScenarioGroupEnabled("POLICE_POUND1", true);
  60.             SetScenarioGroupEnabled("POLICE_POUND2", true);
  61.             SetScenarioGroupEnabled("POLICE_POUND3", true);
  62.             SetScenarioGroupEnabled("POLICE_POUND4", true);
  63.             SetScenarioGroupEnabled("POLICE_POUND5", true);
  64.  
  65.             SetScenarioGroupEnabled("PRISON_TRANSPORT", true);
  66.  
  67.             SetScenarioGroupEnabled("PRISON_TOWERS", true);
  68.  
  69.             SetScenarioGroupEnabled("SANDY_COPS", true);
  70.  
  71.             SetScenarioGroupEnabled("SCRAP_SECURITY", true);
  72.         }
  73.     }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement