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. Vehicle Control Menu

Commands, Exports, Events

Commands

Command
Description

/openCC

Open Vehicle Control Menu

/closeCC

Close Vehicle Control Menu

/toggleCC

Toggle Vehicle Control Menu

You may change these commands in the config file

shared/config.lua
-- Commands used to open, close and toggle vheicle control UI
Config.OpenCommand = "openCC"
Config.CloseCommand = "closeCC"
Config.ToggleCommand = "toggleCC"

Events

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

TriggerEvent("md_vehiclecontrol:open") -- open vehicle control
TriggerEvent("md_vehiclecontrol:close") -- close vehicle control

Exports

If you would like to use exports rather than events

exports['md_vehiclecontrol']:open() -- open vehicle control
exports['md_vehiclecontrol']:close() -- close vehicle control

PreviousHide Headlight/Neon ControlsNextNeon Controller

Last updated 1 month ago