Bablo ResourcesDocs

Admin Panel

The admin panel is where you set up everything players use later: the dealerships, the vehicle catalogue they sell from, vehicle pictures, tuning part prices and the colours of the UI. It opens in game with the command in Config.AdminCommand, /dealereditor by default.

Only server admins can open it. Every action in the panel is checked again on the server, so a player who is not an admin only gets You are not allowed to do that.


Opening the panel

LUA
Config.AdminCommand = 'dealereditor'
Config.AdminAce = 'bablo.dealerships.admin'

Type /dealereditor in chat. The command does nothing while another dealership screen is open, such as a showroom or a management panel.

You count as an admin when at least one of these is true:

FrameworkWho is an admin
QBCorePlayers with the admin or god permission.
QboxPlayers with the admin permission.
ESXPlayers in the admin or superadmin group.
AllAnyone with the ACE command, or the ACE in Config.AdminAce.

To give a group access without making it a framework admin, add the ACE in server.cfg:

PLAINTEXT
add_ace group.admin bablo.dealerships.admin allow

Tabs

TabWhat you do therePage
DealershipsCreate, configure and place every dealership on the server.Dealership Creator
VehiclesManage the vehicle catalogue shared by all dealerships.Vehicle Catalogue
Photo studioTake pictures of your vehicles automatically and choose where they are stored.Photo Studio
Part pricesSet what tuning parts cost on the whole server.Pricing
ThemeChoose the colours of every showroom, panel and prompt.Themes

The dealership list

The Dealerships tab lists every dealership on the server, sorted by name, eight per page.

ColumnWhat it shows
NameThe name with the id under it. The icon shows whether it sells road vehicles, boats or aircraft.
TypePlayer-owned or Public (run by the server).
StatusA switch, with Enabled or Disabled next to it.
VehiclesHow many models are on its stock list.
StaffBuilt-in roles, or the server job that staffs it. Empty for public dealerships.
BalanceThe dealership account. Player-owned dealerships only.
  • Search by name, id or job … filters the list. It also matches what a dealership sells, for example boats.
  • The filter menu narrows the list by Type, Sells and Status.
  • List and Map switch between the table and a map of the game world.
  • New dealership opens the Dealership Creator with an empty form.
  • Import presets adds ready-made dealerships, see Ready-made dealerships.

Actions on a dealership

ButtonWhat it does
Manage as adminOpens the dealership’s management panel with full access. See Managing as admin.
EditOpens the dealership in the creator.
Set GPS waypointPuts a waypoint on the dealership.
Teleport thereTakes you to the dealership. If you are driving, the vehicle comes with you.
DuplicateOpens the creator with a copy of the dealership. Nothing is saved until you press Create dealership.
DeleteDeletes the dealership after a confirmation.

The waypoint and the teleport go to the first showroom entrance. A dealership without one uses the first corner of its area, then its first spawn point for purchased vehicles, then its showroom camera position. If none of these is placed, you get This dealership has no showroom entrance to go to yet.

A duplicate keeps every setting but gets a new id (the old id followed by -2, -3 and so on) and a number after its name. The owner, the area, the camera position, the interaction points and the spawn points are not copied, so you place those again for the copy.

Delete can’t be undone. The dealership’s stock, orders, staff and display vehicles are removed with it. Vehicles that customers already bought are not affected.

Enabling and disabling

Flip the switch in the Status column. A disabled dealership is hidden from players: no blip, no entrance and no display vehicles. Its settings, stock and account stay as they are.

A dealership can only be enabled when it has at least one showroom entrance. Otherwise the switch jumps back with Add a showroom entrance before enabling this dealership.

Map view

Map shows every dealership that has a position as a pin. Disabled dealerships are grey. Click a pin to see its type, status, number of vehicles, staff and balance, with the buttons Edit, Manage, Teleport and Waypoint. The search and the filters apply to the map as well.

Dealerships without any placed point are counted under the map, for example 2 dealerships have no position yet and are not on the map.


Managing as admin

Manage as admin opens the Management Panel of that dealership, even if you don’t work there. The header shows Viewing as admin, and Back to admin returns to the dealership list.

  • You have every staff permission, so every tab the dealership has is open to you.
  • On the Orders tab of a player-owned dealership you get Set Stock instead of Place Order. It sets the number of units in stock directly, from 0 to 9999. No order is placed and the dealership account is not charged.
  • The staff tablet is not offered while you view a dealership as admin.

A player-owned dealership on Built-in roles that has no owner yet can only be managed this way.


Ready-made dealerships

Import presets lists five dealerships at known Los Santos locations. Each one comes with a showroom entrance, a showroom camera position and spawn points for purchased vehicles and test drives.

PresetAreaTypeSells
Premium Deluxe MotorsportPillbox HillPlayer-ownedSports, Coupes, Sedans, SUVs, Muscle, Compacts, Off-road, Motorcycles, Sports Classics, Super
Luxury AutosRockford HillsPublicSuper, Sports, Sports Classics
La Mesa Truck CentreLa MesaPublicVans, Off-road, Commercial, Industrial, Utility
La Puerta MarinaLa PuertaPublicBoats
Los Santos Air SalesLos Santos International AirportPublicHelicopters, Planes

Premium Deluxe Motorsport also comes with a drawn area and a delivery truck point.

  1. Tick the presets you want. A preset whose id is already in use is marked Already exists and can’t be ticked.
  2. Leave Also assign vehicles by category on to add every catalogue vehicle of the right type in the preset’s categories to its stock list. Player-owned dealerships get them with no units in stock.
  3. Press Import dealership (or Import 2 dealerships, and so on).

Imported dealerships are enabled right away. Open each one in the creator to check its area, points and staff, and to give a player-owned one an owner.

Import your vehicles first. With an empty Vehicle Catalogue, a preset has nothing to assign and its showroom is empty.