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

Restrictions to Opening Menu

Setting Up Any Restrictions to Opening The Menu

By default, anybody in the vehicle can open the menu (with passengers having limited access compared to the driver). However, in certain situations, such as when a passenger may be in handcuffs, you may not want them to be control the vehicle. To account for any restrictions similar to these, you can edit the openCCAfterCheck(veh)function in[shared/functions.lua

shared/functions.lua
-- If you want to add any restrictions/conditions for opening the vehicle menu, you can add them here
function openCCAfterCheck()
    openCC() -- This will actually open the menu, so add your conditions before this
end
PreviousFuel ScriptNextKeybinds and Allowed Controls

Last updated 1 month ago