Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using GTA;
- using GTA.Native;
- namespace NoDar
- {
- public class NoDar : Script
- {
- public NoDar()
- {
- Tick += OnTick;
- }
- public void OnTick(object sender, EventArgs e)
- {
- int WantedLevel = Game.Player.WantedLevel;
- if (WantedLevel > 0)
- {
- Function.Call(Hash.SET_POLICE_RADAR_BLIPS);
- Function.Call(Hash.HIDE_HUD_COMPONENT_THIS_FRAME, 1);
- Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicDisabled", 1);
- Function.Call(Hash.SET_AUDIO_FLAG, "DisableBarks", 1);
- Function.Call(Hash.SET_AUDIO_FLAG, "PoliceScannerDisabled", 1);
- Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicOnMission", 0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement