Skip to content

ali-exacute/BetterCarOnKeyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Car On Keyboard

also known as lowerTorque

check out the FiveM forum post

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.

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 : https://github.com/ali-exacute/BetterCarOnKeyboard

  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

About

Drive your car smoother like you are using a controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages