Bablo ResourcesDocs

General information

Most errors come from a bad update or hand-edited code. If you hit an error that isn’t covered here, test with the default resource first.

Which frameworks are supported?
ESX (es_extended), QBCore (qb-core) and Qbox (qbx_core). The framework is detected on its own at startup (Config.Framework = "auto"). Make sure the framework starts before bablo-dealerships.
Which dependencies are required?
ox_lib and oxmysql. Nothing else is required.
Do I need to import any SQL?
No. Every bablo_dealerships_* table is created on start if it is missing. Bought vehicles are saved in your framework’s own vehicle table (player_vehicles on QBCore and Qbox, owned_vehicles on ESX).
Which inventories are supported?
ox_inventory, qb-inventory, ps-inventory, codem-inventory, core_inventory, origen_inventory, tgiann-inventory and the ESX default inventory. Detected on their own, or forced with Config.Inventory. The inventory is only used for the staff tablet item.
Which target and prompt resources are supported?
Target: ox_target and qb-target. Without either, players use a built-in [E] prompt.
Prompts: the ox_lib text UI, or a built-in one.
Both are detected on their own, or forced with Config.Target and Config.Interaction.
Which vehicle key, fuel and company money resources are supported?
Vehicle keys (the buyer gets the keys): zyke_vehiclekeys, qbx_vehiclekeys, qb-vehiclekeys and wasabi_carlock.
Fuel (a new vehicle is handed over with a full tank): ox_fuel, LegacyFuel, cdn-fuel and ps-fuel.
Company money (for company purchases): bablo-banking societies, then Renewed-Banking, qb-banking and qb-management on QBCore, the same plus qbx_management on Qbox, and esx_addonaccount on ESX.
All of them are detected on their own. The bridge files in frameworks/ are open, so you can add your own. See the Script Explorer.
Who can open the admin panel?
Server admins: QBCore admin or god, Qbox admin, ESX admin or superadmin, anyone with the ACE command, and anyone with the ACE in Config.AdminAce. The command is /dealereditor unless you change Config.AdminCommand. See Installation.
What is the difference between a server-run and a player-owned dealership?
A server-run dealership (Public in the creator) has unlimited stock and no staff: customers buy straight from the showroom. A player-owned dealership has an owner, a staff team with ranks, its own account, and stock that has to be ordered and brought in. You choose which one a dealership is in the Dealership Creator.
Can I sell boats and aircraft?
Yes. Every dealership sells either road vehicles, boats or aircraft. Boats are shown on the water at the marina and aircraft on a helipad at the airport while a player browses. Stock runs and the covered hand-over are for road vehicle dealerships only.
Do I need a map or MLO?
No. A dealership is a set of points you place in the world with the creator, so it works in any building. The showroom can also show vehicles in a studio that is built for the browsing player only. See Showroom.
Are ready-made dealerships included?
Yes, five: Premium Deluxe Motorsport, Luxury Autos, La Mesa Truck Centre, La Puerta Marina and Los Santos Air Sales. Add them with Import presets in the admin panel. See Installation.
How do I add my own vehicles?
In the admin panel under Vehicles: Import vehicles fills the catalogue from the vehicle list your server already has, and Add vehicle adds a single one, add-on vehicles included. See Vehicle Catalogue.
Where do the vehicle pictures come from?
From Config.VehicleImages, a web address with the spawn name in it. You can also make your own with the Photo Studio, which photographs vehicles in game.
Does financing need a banking script?
No. Financing works on its own. If you run bablo-banking, financed vehicles are also registered there as loans and can follow its credit score. See Financing.
Where does the mileage come from?
From bablo-hud, jg-vehiclemileage or your framework, in that order, unless you force one with Config.Mileage.Source. Mileage lowers the value of trade-ins, buy-backs and pre-owned vehicles. Set the source to none to ignore it.
Where do I put keys and tokens?
Always in server.cfg with set, never in config.lua. Everything in config.lua is sent to every player. The only key this resource uses is the optional Fivemanage key for the photo studio.
Can I change the texts or add a language?
Yes. Every text is in locales/en.json. English and Swedish are included. See Languages.
Can I change the colours?
Yes. The admin panel has a Theme tab for the whole server, and each dealership can have its own colours. See Themes.