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 client-side 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

Last updated