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
  • Commands
  • Events
  • Exports
  1. Neon Controller

Commands, Exports, Events

Commands

Command
Description

/neonMenu

Toggle Neon Controller Menu

You may change this commands in the config file

shared/config.lua
-- Commands used to open/close the neon controller UI
Config.ToggleCommand = "neonMenu"

Events

The events used to open and close the neon controller UI. These can be called from any script, such as a radial menu.

TriggerEvent("md-neoncontroller:open") -- open neon controller
TriggerEvent("md-neoncontroller:close") -- close neon controller

Exports

If you would like to use exports rather than events

exports['md-neoncontroller']:open() -- open neon controller
exports['md-neoncontroller']:close() -- close neon controller

PreviousKeybinds and Allowed ControlsNextMidnight Progress Bar

Last updated 1 month ago