Wholesale, fleet and fuel
Purchasing and fleet in Eleven Comercios for FiveM: wholesale orders from the tablet picked up at the NPC, business vehicles, the garage, fines and fuel.
The Purchases & fleet section has three tabs: Wholesale, Vehicles and Fuel. Each one only shows up if the business has it: an assigned wholesaler, vehicles on offer or a gas station (the last one ships turned off, see below).
Wholesale
The business buys stock from the wholesaler on the tablet and collects it in person from an NPC on the map. Which wholesalers each business has and what they sell is up to an admin: see Wholesalers.
Placing an order
buy_wholesale permission.
- Open Purchases & fleet → Wholesale. You see the catalog of the wholesalers the business works with, with price and available units.
- Add products to the cart. The tablet warns you if the order is too heavy and shows the balance left in the account.
- Confirm. The amount is charged straight away from the business account and the order is pending pick-up.
Default limits: 30 different products, 500 units of each, $1,000,000 per order and 10 uncollected orders per business. Change them in Config.WholesaleOrders in the admin panel config.lua.
Collecting the order
- Any on-duty employee goes to a wholesaler NPC (it only shows on the map for businesses with a wholesaler).
- They use Collect order on the NPC.
- They take everything that fits in their inventory. If it doesn't all fit, the order is partly collected and the rest is picked up on another trip.
Any business can collect at any wholesaler NPC.
History
With the view_purchases permission you see past orders, their status (pending, partly collected, collected) and fleet fines.
Vehicles
An admin offers vehicles to each business from its page in the panel (Fleet tab), with a price. The package ships 14 stock models in the catalog, not offered to anyone. Under Purchases & fleet → Vehicles:
- Buy (
purchase_vehiclespermission). It's paid from the business account and the vehicle joins the fleet with its plate. - Vehicles are taken out and stored at the premises Garage point: View fleet and Store vehicle. They spawn at the point's position and heading.
An admin can see every purchased vehicle and force one back to the garage.
Fleet fines
If another resource fines a fleet vehicle (a speed camera, for example), it can charge the company instead of the driver with the ChargeFleetFine export (see Exports):
- If the business account has funds, it's charged and online employees get a notification.
- If not, it stays pending. Anyone with the
pay_finespermission pays it later from the history.
Note
Fleet fine money goes to the account of the job set in Config.FleetFines.Payee (police by default). It works with eleven-banking or Renewed-Banking.
Fuel
For businesses that run a gas station. An admin assigns the stations on the business page (Settings tab) or from World → Gas stations.
Under Purchases & fleet → Fuel (view_fuel and manage_fuel permissions):
- You see each station with its tanks per fuel type and their level.
- Refill: order a refill truck at the wholesale price; it's paid from the business account.
- Price: set the price per litre for the station or for a single pump, within a minimum and maximum band. Leaving it empty uses the automatic price.
- Locate pump highlights it at the station.
Warning
This tab ships turned off. It needs a fuel script with business gas stations, using its own exports that no public fuel script provides and that aren't in this package. Without it the tab doesn't show and the rest of the tablet works the same. The fallback price band lives in Config.Fuel (see Delivery, fuel and NPC).