Script Description
This script is designed to enhance vehicle handling in a FiveM server by adding a manual transmission system. Players can toggle between automatic and manual transmission modes, shift gears manually, and see a gear indicator on the screen. The script also incorporates speed limits and engine behavior adjustments for a realistic driving experience.
Key Features:
Manual & Automatic Transmission:
- Players can toggle between transmission modes using a configurable key (
F9by default). - Manual mode allows players to shift gears using
UP(Shift Up) andDOWN(Shift Down) keys.
- Players can toggle between transmission modes using a configurable key (
Configurable Settings:
- Default transmission mode (
automaticormanual). - Adjustable speed limits for each gear.
- Gear shift thresholds based on RPM values.
- UI customization for the gear indicator position on the screen.
- Default transmission mode (
Realistic Driving Mechanics:
- Gear-specific speed limits prevent excessive speed based on the current gear.
- Dynamic car handling adjusts vehicle drag coefficients per gear, simulating real-world handling differences.
Debug Mode:
- Debugging tools for developers to monitor vehicle speed, RPM, and gear changes in real-time.
User-Friendly UI:
- A customizable on-screen display shows the current gear or "Automatic" mode.
Keybinding Support:
- Fully configurable keybinds for toggling modes and shifting gears.
How It Works:
- Automatic Transmission: The script handles gear changes automatically based on speed and RPM thresholds.
- Manual Transmission: Players manually shift gears, with realistic restrictions like minimum RPM requirements and speed caps per gear.
- Critical RPM Enforcement: Ensures vehicles stay within safe speed limits by adjusting engine behavior when maximum gear speed is exceeded.
Integration:
- Compatible with FiveM's ESX framework.
- Utilizes
exports["es_extended"]:getSharedObject()for ESX notifications and functionality. - Supports custom handling for vehicles based on player input and gear selection.
for suggestions you can write in our discord or open a ticket.
This script provides a detailed and immersive driving experience tailored for roleplay and racing scenarios.