Advertisement
Guest User

casino_exterior

a guest
Sep 11th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.30 KB | None | 0 0
  1. using GTA;
  2. using GTA.Native;
  3. using System;
  4. using System.Windows.Forms;
  5.  
  6. namespace mpvinewood
  7. {
  8.     public class Main : Script
  9.     {
  10.         bool Initialized = false;
  11.  
  12.         public Main()
  13.         {
  14.             Tick += OnTick;
  15.         }
  16.  
  17.         void RequestIpl(string iplName)
  18.         {
  19.             if (!Function.Call<bool>(Hash.IS_IPL_ACTIVE, iplName))
  20.             {
  21.                 Function.Call(Hash.REQUEST_IPL, iplName);
  22.             }
  23.         }
  24.  
  25.         void Init()
  26.         {
  27.             RequestIpl("hei_dlc_casino_aircon");
  28.             RequestIpl("hei_dlc_casino_aircon_lod");
  29.             RequestIpl("hei_dlc_casino_door");
  30.             RequestIpl("hei_dlc_casino_door_lod");
  31.             RequestIpl("hei_dlc_vw_roofdoors_locked");
  32.             RequestIpl("hei_dlc_windows_casino");
  33.             RequestIpl("hei_dlc_windows_casino_lod");
  34.             RequestIpl("vw_ch3_additions");
  35.             RequestIpl("vw_ch3_additions_long_0");
  36.             RequestIpl("vw_ch3_additions_strm_0");
  37.             RequestIpl("vw_dlc_casino_door");
  38.             RequestIpl("vw_dlc_casino_door_lod");
  39.         }
  40.  
  41.         void OnTick(object sender, EventArgs e)
  42.         {
  43.             if (!Initialized)
  44.             {
  45.                 Script.Wait(1000);
  46.                 Init();
  47.                 Initialized = true;
  48.             }
  49.         }
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement