Log in to reply
 

[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)
    {
       
    }
    

    }


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.