Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 21st, 2016 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using GTA;
  3. using GTA.Native;
  4.  
  5. namespace NoDar2
  6. {
  7.     public class NoDar2 : Script
  8.     {
  9.  
  10.         public NoDar2()
  11.         {
  12.             Tick += OnTick;
  13.         }
  14.  
  15.         public void OnTick(object sender, EventArgs e)
  16.         {
  17.             int WantedLevel = Game.Player.WantedLevel;
  18.             if (WantedLevel > 0)
  19.             {
  20.  
  21.                
  22.                 Function.Call(Hash.HIDE_HUD_COMPONENT_THIS_FRAME, 1);
  23.                 Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicDisabled", 1);
  24.                 Function.Call(Hash.SET_AUDIO_FLAG, "DisableBarks", 1);
  25.                 Function.Call(Hash.SET_AUDIO_FLAG, "PoliceScannerDisabled", 1);
  26.                 Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicOnMission", 0);
  27.  
  28.             }
  29.             if (WantedLevel <= 1)
  30.             {
  31.                 Function.Call(Hash.SET_CREATE_RANDOM_COPS, true);
  32.             }
  33.             if (WantedLevel > 1)
  34.             {
  35.                 Function.Call(Hash.SET_CREATE_RANDOM_COPS, false);
  36.             }
  37.         }
  38.     }
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top