Advertisement
Guest User

1234

a guest
Apr 21st, 2016
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using System;
  2. using GTA;
  3. using GTA.Native;
  4.  
  5. namespace NoDar
  6. {
  7. public class NoDar : Script
  8. {
  9.  
  10. public NoDar()
  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. Function.Call(Hash.SET_POLICE_RADAR_BLIPS);
  21. Function.Call(Hash.HIDE_HUD_COMPONENT_THIS_FRAME, 1);
  22. Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicDisabled", 1);
  23. Function.Call(Hash.SET_AUDIO_FLAG, "DisableBarks", 1);
  24. Function.Call(Hash.SET_AUDIO_FLAG, "PoliceScannerDisabled", 1);
  25. Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicOnMission", 0);
  26.  
  27. }
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement