[SCRIPT] [RELEASED] [WIP] DVS by levmans (Disable Vehicle Shake)
-
Hello guys. I want your help with my simplest ever script. I just need it to be loaded once at the beginning of the game(to turn off vehicle shaking native function). Now it runs on key press "J"
Thank you in advance.here's script:
using GTA;
using GTA.Native;
using GTA.Math;
using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.IO;
using System.Drawing;
using System.Media;public class ModName : Script
{
// Where you initialize all your variables for use.
private string modName = "Car shake disabler";
private string modCreatorName = "levmans";private Ped playerPed = Game.Player.Character; private Player player = Game.Player; // Where you initialize the events or do anything when the mod starts. public ModName() { UI.Notify(modName + " made by: " + modCreatorName); Tick += OnTick; KeyDown += OnKeyDown; KeyUp += OnKeyUp; } // This is where loops/things are run every frame. private void OnTick(object sender, EventArgs e) { } // When you press a key down or hold it. private void OnKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.J) { Function.Call((Hash)0x84FD40F56075E816, 0); UI.Notify(modName + " made by: " + modCreatorName); } } // When you press a key up or release it. private void OnKeyUp(object sender, KeyEventArgs e) { }
}
-
I just don't want the script to run every frame. I want it only to load once at beginning. Anyone?
-
Try asking in the Discord? https://discord.gg/hwYVCmw