Midnight Dev
  • Vehicle Control Menu
    • Installation
    • Configuration
      • Fuel Script
      • Restrictions to Opening Menu
      • Keybinds and Allowed Controls
      • Restricted Passenger Control
      • Refresh Time
      • Hide Headlight/Neon Controls
    • Commands, Exports, Events
  • Neon Controller
    • Installation
    • Configuration
      • Keybinds and Allowed Controls
    • Commands, Exports, Events
  • Midnight Progress Bar
  • Midnight Menu and Input (Package)
Powered by GitBook
On this page
  1. Vehicle Control Menu
  2. Configuration

Refresh Time

This config determines how frequently the vehicle control UI will be updated, defining the delay time in miliseconds between each update tick. For example, if a door is torn off a vehicle, a lower refresh time will cause the UI to disable the corresponding door button more quickly. However, it's important to note that while a shorter refresh time improves responsiveness, it will also consume more server resources. The default value of 1250ms will result in a good balance between responsiveness, while consuming 0.02 to 0.03ms of resmon (while the UI is open)

shared/config.lua
-- Time in ms between each UI update. Lowering this will result in a more responsive UI, but will consume more resources
Config.RefreshTime = 1250 
PreviousRestricted Passenger ControlNextHide Headlight/Neon Controls

Last updated 1 month ago