Administrator Guide
This guide covers the administrative workflows for ars_cardealer. Administrators create and manage dealerships, curate the vehicle catalog, grant ownership, tune live settings, and monitor everything through the audit log.
Staff-facing workflows live in their own guides: see the Owner Guide for boss-panel management (employees, funds, coupons) and the Employee Guide for floor staff (selling, test drives, trucking).
Table of Contents
Section titled “Table of Contents”- Opening the Admin Panel
- Creating and Managing Shops
- Catalog Management
- Per-Shop Settings
- Audit Log and Analytics
- Global Settings
1. Opening the Admin Panel
Section titled “1. Opening the Admin Panel”Run the admin command in-game:
/arscardealerThe server checks Config.Admin.allow (group, license, or identifier) before opening the panel. Console (src == 0) always passes. If you see “You don’t have permission to do that,” your account does not match any allow-list entry in config.lua.
The admin panel has six top-level tabs:
| Tab | Purpose |
|---|---|
| Shops | List, edit, activate/deactivate, or delete dealerships |
| Overview | Network-wide revenue, sales, and financed totals |
| Ledger | Full transaction ledger across all dealerships, filterable and paginated |
| Catalog | Master vehicle list with import and edit tools |
| Audit Log | Every privileged action (hires, funds, edits, ownership) |
| Settings | Live-tune economy and gameplay values |
2. Creating and Managing Shops
Section titled “2. Creating and Managing Shops”Create a Shop
Section titled “Create a Shop”- Open the admin panel and go to the Shops tab.
- Click Create Shop.
- Fill in the shop identity:
- ID — lowercase, no spaces (e.g.
pdm). Used as the unique key. - Label — display name (e.g.
Premium Deluxe Motors). - Category hint — optional grouping.
- Shop type — Self Service, Player Owned, or Unowned.
- ID — lowercase, no spaces (e.g.
- Choose Customer access:
- Public — anyone can browse and buy.
- Restricted — select specific jobs that can browse.
- Optionally restrict a Gang Access Whitelist — when set, only players in the listed gangs (comma-separated) can browse and buy.
- If using job management mode, select a Management job or create a new one.
- Click Create & draw zone.
The creator puts you in noclip mode. Left-click to place zone vertices, then walk to each point and press E:
| Point | Purpose |
|---|---|
| Browse | Where customers target the salesman ped to open the catalog |
| Preview | Where the 3D vehicle preview spawns |
| Deliver | Where purchased vehicles spawn |
| Manage | Where the boss/management panel opens |
- After placing points, optionally add display vehicles by selecting a model and left-clicking in-world to place each one.
Edit a Shop
Section titled “Edit a Shop”From the Shops tab, click Edit on any dealership to open the ShopEditor:
- Change the label, category, blip sprite/color/scale.
- Swap the salesman ped model (or use a custom one).
- Re-place the zone and points, or add/remove display vehicles.
- Readjust a display’s position with
/readjustdisplay.
Activate / Deactivate
Section titled “Activate / Deactivate”Toggle a shop’s active state from the shop list. Inactive shops do not spawn peds, blips, or displays.
Delete a Shop
Section titled “Delete a Shop”Permanently removes the shop, its stock, and all assignments. This cannot be undone — confirm carefully.
3. Catalog Management
Section titled “3. Catalog Management”The Catalog tab manages the master vehicle list (ars_cardealer_vehicles) shared across all dealerships.
Import from Framework
Section titled “Import from Framework”- Open the Catalog tab in the admin panel.
- Click Import — the panel previews the active framework’s vehicle list (QB:
QBCore.Shared.Vehicles, QBox:exports.qbx_core:GetVehiclesByName(), ESX:vehiclesSQL table). - Optionally filter by category, then confirm the import.
New vehicles are inserted with source = '<framework>' so you can later identify their origin.
Add a Vehicle Manually
Section titled “Add a Vehicle Manually”- Click Add vehicle.
- Enter the model spawn name (lowercase, no spaces — used as the unique key).
- Set label, category, price, stock (-1 for unlimited), image URL, and stats.
- Assign the vehicle to one or more dealerships with optional per-shop price overrides.
Bulk Add
Section titled “Bulk Add”For adding many vehicles at once:
- Click Bulk add.
- Enter one vehicle per line in the format:
model, label, category, price(last three optional). Lines starting with#are comments. - Preview the valid/skipped count, then confirm.
Per-Vehicle Image Capture
Section titled “Per-Vehicle Image Capture”The resource includes an in-game image capture flow using screenshot-basic:
- Ask the server owner to configure the image host in
server/utils.lua(uploadProvider+ webhook/API key) — captures fail until this is set. See Installation. - Select vehicles in the Catalog tab.
- Click Bulk capture images.
- The system spawns each vehicle in an isolated studio (green screen), captures a 512×512 image, removes the background, and uploads to the configured provider.
Note: Image upload provider configuration (webhook URL / API keys) lives in
server/utils.luaviaServer.GetUploadConfig— not inconfig.lua.
4. Per-Shop Settings
Section titled “4. Per-Shop Settings”Each shop can override global defaults without touching config.lua. Open the shop in the Shops tab → Edit → Per-shop settings. Every option is tri-state (Inherit follows the global config):
| Setting | Description |
|---|---|
| Test drives | Enable/disable the test-drive flow at this shop |
| Financing | Enable/disable financing at this shop |
| Display panel | Show/hide the floating stats card near display vehicles |
| Buy from catalog | Off = customers can only browse; a rep must complete the sale |
| Trade-in | Enable/disable trade-ins at this shop |
| Coupons | Off = coupon codes cannot be redeemed at this shop |
| Colour customization | Off = customers buy in factory colour |
| Extras | Toggle-able add-on parts in the purchase panel |
| Liveries | Livery stepper in the purchase panel |
| Colour mode | palette, ids, or rgb wheel |
| Stock delivery mode | instant, auto, or trucking |
| Delivery garage | Override the garage where purchased vehicles spawn |
| Accepted payment methods | Restrict which currencies this shop accepts |
| Company Fleet Purchases | Allow organization & gang fleet purchases from company funds |
5. Audit Log and Analytics
Section titled “5. Audit Log and Analytics”Audit Log
Section titled “Audit Log”The Audit Log tab records every privileged action, grouped by prefix:
| Action | Description |
|---|---|
employee.hire / employee.fire |
Hire/fire events |
employee.role / employee.update_salaries |
Role and salary changes |
funds.deposit / funds.withdraw |
Owner balance movements |
funds.restock_charge / funds.restock_refund |
Wholesale charges and refunds |
shop.create / shop.update / shop.delete |
Shop changes |
shop.toggle |
Shop active/inactive state |
business.toggle |
Business open/closed state |
shop.settings |
Per-shop settings changes |
shop.assign_owner / shop.clear_owner |
Ownership changes |
stock.order / stock.update / stock.reset |
Stock management |
catalog.add / catalog.update / catalog.delete / catalog.assign / catalog.bulk_add / catalog.import |
Catalog management |
display.add / display.update_slot / display.delete_slot |
Display vehicles |
used_listing.toggle / vehicle.sell_to_dealer |
Used-vehicle listings and sales |
coupon.create / coupon.toggle / coupon.delete |
Coupons |
payroll.salary / payroll.skipped / commission.paid / business.commission_credit |
Payroll and commissions |
purchase.rollback / purchase.rollback_denied |
Purchase refunds |
financing.loan_created / financing.installment / financing.payment / financing.delinquent / financing.repossessed / financing.recovered |
Financing lifecycle |
transfer.vehicle |
P2P ownership transfers |
delivery.order_cancelled |
Cancelled restock orders |
job.create |
Management job auto-creation (job mode) |
Audit entries are auto-pruned after Config.Admin.auditRetentionDays (default 90).
Analytics Dashboard
Section titled “Analytics Dashboard”The Overview tab shows network-wide KPIs:
- Lifetime revenue and sales count
- 30-day revenue and sales
- Financed vs. cash sale breakdown
- Active shops count
- Recent transaction ledger (filterable by dealer, player, model, date range)
6. Global Settings
Section titled “6. Global Settings”The Settings tab in the admin panel lets you tune economy and gameplay values at runtime without restarting the resource. Changes are stored in ars_cardealer_settings and override config.lua defaults live.
Key settings include:
- Delivery:
defaultMode,wholesalePct,autoDelay,autoFeePct,driverPayPerUnit,driverPayFlat - Test drive:
enabled,mode,duration,maxDistance,deposit,cooldown - Financing:
enabled,interestRate,plans,intervalHours,repoFee - Trade-in and sell:
baseValuePct,payoutPct,minValue - Commission:
enabled,rates,selfServeMultiplier
To revert a setting to its config.lua default, delete its row from the ars_cardealer_settings table. See Configuration for the full list.
Quick Reference
Section titled “Quick Reference”| Command | Description |
|---|---|
/arscardealer |
Open the admin shop control panel |
/readjustdisplay |
Reposition the nearest display vehicle |
Note: This guide is written by a third party. If you find any incorrect or outdated information, please contact us on Discord so we can update it for you.