Simple Vehicle Menu (All Framework)

Simple Vehicle Menu (All Framework)

$10.00

Add to Basket
preview

Vehicle Control
This script provides an interactive and customizable user interface for 
vehicle control in FiveM. It allows players to control the vehicle’s doors, 
windows, and seats in an intuitive way.

Key Features
Draggable Interface: All panels can be freely moved and positioned on the screen
Persistent Positions: Panel positions are automatically saved and retained
between sessions
Minimizable Panels: Each section can be minimized to optimize screen space

Full Vehicle Control:

  • Individual door control

  • Window handling

  • Seat switching

  • Quick actions (all doors/windows)

  • Interface configurable via the config file

Controls: 

  • Open/Close: M (configurable)
  • Drag: Click and drag the top bar of each panel
  • Minimize: "-" button on each panel
  • ESC: Closes the interface

    Note: After starting the resource for the first time, please restart your server twice
    to ensure the script initializes correctly and becomes fully functional.

    config.lua

```
Config = {}
-- Control configuration
Config.Controls = {
command = 'vehiclemenu',
key = 'M',
description = 'Open vehicle control menu'
}

-- UI text configuration
Config.UI = {
title = "Vehicle Control",
doors = "Doors",
windows = "Windows",
seats = "Seats",
actions = "Quick Actions",
}

-- Default UI positions configuration
Config.UIPositions = {
quickActions = { x = 20, y = 20 },
doors = { x = 20, y = 150 },
windows = { x = 20, y = 300 },
seats = { x = 20, y = 450 }
}

-- UI size configuration
Config.UISize = {
buttonSize = 40, -- Button size
gridGap = 5, -- Space between buttons
minWidth = 200, -- Minimum width of sections
maxWidth = 400 -- Maximum width of sections
}

-- Image configuration
Config.Images = {
doors = {
front_left = "doorFrontLeft",
front_right = "doorFrontRight",
rear_left = "doorRearLeft",
rear_right = "doorRearRight",
hood = "frontHood",
trunk = "rearHood"
},
windows = {
front_left = "windowFrontLeft",
front_right = "windowFrontRight",
rear_left = "windowRearLeft",
rear_right = "windowRearRight"
},
seats = {
driver = "seatFrontLeft",
passenger = "seatFrontLeft",
rear_left = "seatFrontLeft",
rear_right = "seatFrontLeft"
},
actions = {
all_doors = "all_doors",
all_windows = "all_windows",
to_driver = "to_driver",
exit = "exit"
}
}

-- Color configuration
Config.Colors = {
primary = "#00ffd9",
background = "#141923d9",
button = "#2a2a2a",
button_hover = "#3a3a3a",
border = "#3a3a3a",
indicator = {
active = "#33ff33",
inactive = "#ff3333"
}
}

-- Feature configuration
Config.Features = {
enableDoors = true,
enableWindows = true,
enableSeats = true,
showAllDoors = true,
showAllWindows = true,
showAllSeats = true
}

-- Notification configuration
Config.Notifications = {
enable = false,
messages = {
doorOpen = "Door opened",
doorClosed = "Door closed",
windowUp = "Window raised",
windowDown = "Window lowered",
seatChanged = "Seat changed",
allDoorsToggled = "All doors toggled",
allWindowsToggled = "All windows toggled"
}
}

```