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
-
Download the script from github : GitHub - ali-exacute/BetterCarOnKeyboard: Drive your car smoother like you are using a controller
-
Copy the script files to your server’s resources directory.
-
Edit
config.lua
to customize torque values, debug mode, and UI settings if you want. -
Add the resource to your server’s start-up configuration:
ensure BetterCarOnKeyboard
my other projects :
Second Hand Vehicle Remastered