Three Types
Public, business and job.
coe_garagesGarages & Fleets
Public, business and job garages with fleets and access control
coe_corecoe_databasecoe_loggingcoe_uicoe_vehiclescoe_businessescoe_vehicle_catalog
coe_garages
10 exports · 1 command
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Garages registered in the admin panel, with 1 to 8 slots and a blip. Public garages store personal vehicles; business garages keep the company fleet, with the owner granting each vehicle to people or to on-duty staff; job garages serve police, hospital and similar. Other resources buy fleet vehicles through the AddBusinessFleet export. Replaces the basic garages (coe_garage).
Taking a vehicle out grants the key through coe_vehicles and storing it in the fleet revokes keys: vehicle access follows the business link.
Public, business and job.
Granted per person or to on-duty staff.
Fleet added from the catalog with vehicle photos.
Keys granted and revoked on take-out and storage.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Built with vanilla HTML5, CSS3 tokens, and modern JavaScript. No heavyweight frameworks (React/Vue/Electron). Rendered directly in FiveM DX12's Chromium Embedded Framework at 0.00 ms while closed.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coe_garages']:AddBusinessFleet(businessId, model, staff)
→ any
Adds a vehicle purchased by a business resource (FleetResources, for example coe_fuel) to the business's first business garage and, when staff is true, grants it to the staff. Returns the record ({ id, plate, ... }) or { error }.
| Parameter | Type |
|---|---|
businessId | any |
model | any |
staff | any |
local result = exports['coe_garages']:AddBusinessFleet(businessId, model, staff)exports['coe_garages']:AddFleetVehicle(garageId, model)
→ any
Export server AddFleetVehicle (server/main.lua).
| Parameter | Type |
|---|---|
garageId | any |
model | any |
local result = exports['coe_garages']:AddFleetVehicle(garageId, model)exports['coe_garages']:BusinessFleet(businessId)
→ any
Export server BusinessFleet (server/main.lua).
| Parameter | Type |
|---|---|
businessId | any |
local result = exports['coe_garages']:BusinessFleet(businessId)exports['coe_garages']:DeleteGarage(garageId)
→ any
Export server DeleteGarage (server/main.lua).
| Parameter | Type |
|---|---|
garageId | any |
local result = exports['coe_garages']:DeleteGarage(garageId)exports['coe_garages']:ListFleet(garageId)
→ any
Export server ListFleet (server/main.lua).
| Parameter | Type |
|---|---|
garageId | any |
local result = exports['coe_garages']:ListFleet(garageId)exports['coe_garages']:ListGarages()
→ any
Export server ListGarages (server/main.lua).
No parameters.
local result = exports['coe_garages']:ListGarages()exports['coe_garages']:RemoveFleetVehicle(garageId, vehicleId)
→ any
Export server RemoveFleetVehicle (server/main.lua).
| Parameter | Type |
|---|---|
garageId | any |
vehicleId | any |
local result = exports['coe_garages']:RemoveFleetVehicle(garageId, vehicleId)exports['coe_garages']:SaveGarage(raw)
→ any
Export server SaveGarage (server/main.lua).
| Parameter | Type |
|---|---|
raw | any |
local result = exports['coe_garages']:SaveGarage(raw)exports['coe_garages']:SetFleetStaffAccess(businessId, vehicleId, enabled)
→ any
Export server SetFleetStaffAccess (server/main.lua).
| Parameter | Type |
|---|---|
businessId | any |
vehicleId | any |
enabled | any |
local result = exports['coe_garages']:SetFleetStaffAccess(businessId, vehicleId, enabled)exports['coe_garages']:TabletCall(playerId, appId, action)
→ any
Export server TabletCall (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
appId | any |
action | any |
local result = exports['coe_garages']:TabletCall(playerId, appId, action)/coe_fleet_add <garagem> <modelo> [placa]
Adds a vehicle to a business or job garage fleet (ACE command.coe_fleet_add).