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

Restricted Passenger Control

For most vehicles, passengers can typically control their own windows and doors. However, for larger vehicles like buses, prison buses, tour buses, and other similar types of buses, it would be more realistic for passengers to have no control over the windows or doors. This configuration allows you to specify which vehicles this rule should apply to. To add a vehicle, add the MODEL NAME of the vehicle from the FiveM Vehicle Reference (in capital letters)

shared/config.lua
-- See https://docs.fivem.net/docs/game-references/vehicle-models/ for names of vehicle models 
-- Vehicles that pasengers should have no control of any windows, whatsoever
Config.NoPassengerWindowControl = {  
    "BUS", "AIRBUS", "COACH", "PBUS", "PBUS2", "TOURBUS", "RENTALBUS", 
}

-- Vehicles that pasengers should have no control of any doors, whatsoever
Config.NoPassengerDoorControl = { 
    "BUS", "AIRBUS", "COACH", "PBUS", "PBUS2", "TOURBUS", "RENTALBUS", 
}
PreviousKeybinds and Allowed ControlsNextRefresh Time

Last updated 1 month ago