Vehicle controls system

Important: Keybinds

To use all available keybinds, download and install ug_keybinds from your Keymaster. This resource contains all keybinds used across our scripts.

  • You can enable or disable individual keybinds in the configuration.

  • Disabled keybinds will not appear in the keybinds list.

Script Installation Guide

Installing this package is very simple. Follow the steps below:

Step 1: Download

  • Download the script from your Keymaster.

Step 2: Extract

  • Extract the package locally.

Step 3: Upload

  • Upload the script to your server files.

Step 4: Start

  • The script is standalone and works as soon as you start it on your server.

Configuration

  • A config file is included to adjust settings to your preference.

  • If you do not want to use certain included scripts:

    • Each script is in its own file.

    • You can disable them by commenting them out in the fxmanifest.lua.

Ejecto Seato

For Ejecto Seato to work, add the following line to the top of your server.cfg:

setr game_enableFlyThroughWindscreen true

Exports

This script provides multiple exports you can use in other resources:

Engine Toggle

-- Prevent toggling engine ON
exports.ug_vehicle_controls_system:SetEngineOnAllowed(false) -- or (true)

-- Prevent toggling engine OFF
exports.ug_vehicle_controls_system:SetEngineOffAllowed(false) -- or (true)

Status Checks

-- Check if cruise control is active
exports["ug_vehicle_controls_system"]:IsCruiseControlActive(veh)

-- Check if traction control is active
exports["ug_vehicle_controls_system"]:IsTractionControlActive(veh)

-- Get left indicator state
exports["ug_vehicle_controls_system"]:GetLeftIndicatorState(veh)

-- Get right indicator state
exports["ug_vehicle_controls_system"]:GetRightIndicatorState(veh)

-- Get seat belt state
exports["ug_vehicle_controls_system"]:GetSeatBeltState(veh)

Last updated