Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using GTA;
- using GTA.Native;
- using System;
- using System.Windows.Forms;
- namespace NoDrivingComplaints
- {
- public class MainScript : Script
- {
- public MainScript()
- {
- Tick += OnTick;
- Interval = 0;
- }
- void OnTick(object sender, EventArgs e)
- {
- if (Game.Player.Character.IsInVehicle())
- {
- if (Function.Call<bool>(Hash.IS_AMBIENT_SPEECH_PLAYING, Game.Player.Character))
- {
- Function.Call(Hash.STOP_CURRENT_PLAYING_AMBIENT_SPEECH, Game.Player.Character);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement