This script protected escrow system
[Discord]
izzy-dealership โ Dealership & Gallery System for FiveM
๐ฆ Overview
* Full vehicle dealership on your server โ showroom, sales, stock, and employee panel
* Works with ESX and QBCore (Config.Framework โ auto)
* Database: insertme.sql โ dealerships, vehicles, stock, sales, orders, coupons
* Ready galleries in config: pdm, galeri (cars + bikes)
* Dealership blips on the map (Config.DealershipsBlip)
๐ค Profile area (management & admin menu)
* Your in-game character photo (mugshot) in the top corner
* Dealership name and logo beside it โ your galleryโs identity
* In the customer showroom: dealership logo + name (branding, not your personal avatar)
๐ Customer showroom
* Green marker โ showroom spot (Config.Markers.Showroom)
* Vehicles by category โ only in-stock items are listed
* Search and filter (AโZ, price, newest/oldest)
* Arrow through the list, 3D preview of each car
* Right-click โ rotate the camera (Right Click hint)
* Pick a color โ preset palette (Config.DefaultColors) + custom hex picker
* Live performance bars โ speed, power, brakes, handling, and related stats
* Discount badge when the dealership has an active sale
๐ Buying a vehicle
* Purchase โ cash or bank (you choose payment method)
* Enter a coupon code for a percentage off
* Out of stock = vehicle drops off the list
* Plate format from server config (Config.PlateFormat โ e.g. 1AA111AA)
* Keys: qb-vehiclekeys or Renewed-Vehiclekeys when installed
๐ Test drive (Config.TestDrive)
* If enabled: test drive โ 60 seconds, 1000 m range
* Test plate: TESTCAR
* Ends when time runs out or press E
* Menu closes during the test; countdown on screen
๐ฎ Job garages (Config.JobDealerships)
* No SQL / management / stock โ config list only
* Example: police_garage โ police job only, fixed vehicles and prices
* No full dealership owner panel on job garages
๐ผ Dealership management (red marker โ Management)
* Menu tabs depend on your rank (Config.EmployeeRanks):
ย * Dashboard โ balance, deposit / withdraw (if allowed), recent sales, quick links
ย * Vehicles โ stock, price, edit, place orders (Config.OrderWaitTime โ default 30 s wait)
ย * Orders โ pending stock orders
ย * Sales โ who bought what, search and filters
ย * Categories โ add / edit / remove
ย * Employees โ invite, rank, salary (Config.DefaultSalary, salary every Config.SalaryTime minutes)
ย * Discount โ % off whole dealership or selected vehicles
ย * Coupon codes โ create codes, expiry, specific vehicles, edit / delete
ย * Settings โ dealership name, logo URL, blip color
ย * Display โ showcase vehicles (if you have display permission)
* Default ranks:
ย * Manager โ vehicles, orders, deposit, sales, edit, discount, categories, dashboard
ย * Staff โ sales + dashboard
* Ownership transfer โ hand the dealership to a nearby player (admin permission required per locale)
๐ ๏ธ Admin panel (Config.AdminCommand โ dealeradmin)
* Your mugshot + admin header
* Global vehicle database โ add, edit, assign categories
* Dealership list โ create dealerships, assign to players (giveDealership)
* Config.EditButton โ hide or show edit buttons
๐ Languages
* Config.Locale โ en, tr, pr, fr, de (5 languages in shared/locales.lua)
* UI and notifications follow the language you pick
โ๏ธ Server settings (config summary)
* Config.MoneyType โ default payment type (cash / bank)
* Config.DefaultProfitMargin โ default profit margin 10%
* Config.Distance โ marker distance 2.0
* Config.drawtextorfloating โ 3D text or floating text at markers
* Vehicle types: car, bike, helicopter, boat, airplane
* Hundreds of pre-filled vehicles in insertme.sql
๐ ๏ธ Setup (server owners)
* Import insertme.sql โ ensure izzy-dealership
* shared/config.lua โ gallery coords, job garages, ranks
* functions/ and shared/ editable outside escrow
* MySQL: mysql-async, oxmysql, or ghmattimysql