Better Car On Keyboard | Drive smooth like you are on controller


fixed the github link not working

Better Car On Keyboard

also known as lowerTorque

This script modifies vehicle torque in real-time when specific keys are pressed, allowing players to adjust vehicle acceleration dynamically, similar to gradual throttle control with a controller. Using keyboard inputs, the script adjusts torque to make a vehicle accelerate faster or slower based on specified torque levels.

very simple script but useful for every RP server to elevate user experience !

Features

  • Dynamic Acceleration Control: Increase or decrease vehicle torque with assigned keys.
  • Configurable Torque Range: Set minimum and maximum torque values.
  • In-Game UI Option: Display current torque level and wheel power metrics (debug only).
  • Controller Compatibility: Automatically disables torque adjustments if a controller is detected.

Configuration

Adjust script behavior in the config.lua file.

  • Debug Mode: Enable or disable debug messages (Config.debug).

  • Torque Range:

    • Config.lowestTorque: Minimum torque allowed (e.g., 0.2).
    • Config.HighestTorque: Maximum torque allowed (e.g., 1.8).
  • On-Screen Data:

    • Config.onScreenData.enabled: Show torque level on-screen.
    • Config.onScreenData.location: Set display location for torque text.
    • Config.onScreenData.scale: Text scale for on-screen torque display.
  • Controls: Customize keys for torque control in Config.Controls:

    • modifierKey: Optional modifier key to press with the main key.
    • key: Main key to adjust torque (check game-refrences for keys).
    • disableKeyDefaultFunc: Disable default in-game action for the key.
    • torque: Torque adjustment increment/decrement per key press.

Default Controls

  • Increase Torque: Mouse scroll-up (configurable in Config.Controls[1].key)
  • Decrease Torque: Mouse scroll-down (configurable in Config.Controls[2].key)

Installation

  1. Download the script from github : GitHub - ali-exacute/BetterCarOnKeyboard: Drive your car smoother like you are using a controller

  2. Copy the script files to your server’s resources directory.

  3. Edit config.lua to customize torque values, debug mode, and UI settings if you want.

  4. Add the resource to your server’s start-up configuration:

   ensure BetterCarOnKeyboard

my other projects :

Second Hand Vehicle Remastered

Advanced Spectate

Better FPS | Dynamic FPS Booster

ESX Advanced Needs

ESX Advanced Job System

Advanced Kit System

ESX Adminplus

6 Likes

Hell yeah! I’m gonna test this out for sure!

If you could share a preview like before and after, that would be great because I couldn’t see much difference.

1 Like

its pretty simple, it just lower the vehicle torque so your car start moving smoother, exactly like how you would use the trigger button in controllers