Skip to content
ESX Addons
Cruise Control

esx_cruisecontrol

https://github.com/esx-framework/esx_cruisecontrol

ESX Cruisecontrol includes a cruisecontrol and seatbelt system for safe and relaxing driving

Configuration

  • Config.HudResource
    • type: string
    • default: esx_hud
    • description: The resource name of the HUD resource that should be used to display the cruisecontrol and seatbelt status
  • Config.Cruise
    • type: table
    • description: Configuration for the cruisecontrol
    • options:
      • Enable
        • type: boolean
        • default: true
        • description: Enable or disable the cruisecontrol
      • Key
        • type: string
        • default: CAPITAL
        • description: The key to toggle the cruisecontrol
      • Export
        • type: function
        • default:
           Export = function(state)
              exports[Config.HudResource]:SetCruiseControl(state)
          end
        • description: Export to set the cruisecontrol status in the HUD
  • Config.Seatbelt
    • type: table
    • description: Configuration for the seatbelt
    • options:
      • Enable
        • type: boolean
        • default: true
        • description: Enable or disable the seatbelt
      • Key
        • type: string
        • default: B
        • description: The key to toggle the seatbelt
      • EjectCheckSpeed
        • type: number
        • default: 45.0
        • description: The speed at which the player should be ejected from the vehicle when not wearing a seatbelt
      • RagollTime
        • type: number
        • default: 1
        • description: The time in milliseconds the player should be in ragdoll when ejected from the vehicle
      • Export
        • type: function
        • default:
          Export = function(state)
            exports[Config.HudResource]:SeatbeltState(state)
          end
        • description: Export to set the seatbelt status in the HUD