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
- type:
Config.Cruise
- type:
table
- description: Configuration for the cruisecontrol
- options:
Enable
- type:
boolean
- default:
true
- description: Enable or disable the cruisecontrol
- type:
Key
- type:
string
- default:
CAPITAL
- description: The key to toggle the cruisecontrol
- type:
Export
- type:
function
- default:
Export = function(state) exports[Config.HudResource]:SetCruiseControl(state) end
- description: Export to set the cruisecontrol status in the HUD
- type:
- type:
Config.Seatbelt
- type:
table
- description: Configuration for the seatbelt
- options:
Enable
- type:
boolean
- default:
true
- description: Enable or disable the seatbelt
- type:
Key
- type:
string
- default:
B
- description: The key to toggle the seatbelt
- type:
EjectCheckSpeed
- type:
number
- default:
45.0
- description: The speed at which the player should be ejected from the vehicle when not wearing a seatbelt
- type:
RagollTime
- type:
number
- default:
1
- description: The time in milliseconds the player should be in ragdoll when ejected from the vehicle
- type:
Export
- type:
function
- default:
Export = function(state) exports[Config.HudResource]:SeatbeltState(state) end
- description: Export to set the seatbelt status in the HUD
- type:
- type: