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;
- public class NoAfterTouchControl : Script
- {
- public NoAfterTouchControl()
- {
- Tick += OnTick;
- Interval = 5000;
- }
- void OnTick(object sender, EventArgs e)
- {
- Vehicle veh = Game.Player.Character.CurrentVehicle;
- if (CanWeUse(veh) && veh.Model.IsCar)
- {
- Function.Call(GTA.Native.Hash.SET_VEHICLE_OUT_OF_CONTROL, Game.Player.Character.CurrentVehicle, false,false);
- }
- }
- bool CanWeUse(Entity entity)
- {
- return entity != null && entity.Exists();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement