Centralized Fleet Data
Trunk volumes, fuel tank sizes, and categories maintained in a single structured schema.
coe_vehicle_catalogVehicle Fleet Directory & Parameters
Centralized Vehicle Data Dictionary with Technical Specifications
coe_core
coe_vehicle_catalog
10 exports · 3 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Stores metadata for all vehicles active on the server: make, model, class (sports, sedans, trucks), passenger capacity, trunk volume in kilograms, fuel tank volume in liters, and dealership base market valuation.
Static in-memory lookup table in C++ Lua with ultra-fast binary search, eliminating redundant database round-trips.
Trunk volumes, fuel tank sizes, and categories maintained in a single structured schema.
Depreciation models calculated for used car markets and insurance payouts.
Trunks calibrated to match visual car scale (ranging from 30kg up to 1000kg).
Powerful V8 engines consume fuel at higher rates than compact 4-cylinder sedans.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Operates strictly within layers L1–L3 (domain, HAL, and server-authoritative application logic). Visual interactions and management flows are delegated to centralized ecosystem apps (coe_ui / coe_tablet), guaranteeing 0.00 ms idle client overhead in FiveM DX12.
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_vehicle_catalog']:GetVehicleInfo(model)
→ CoeVehicleInfo|nil
Retrieves comprehensive catalog specifications for a specific vehicle model.
| Parameter | Type |
|---|---|
model | string |
local result = exports['coe_vehicle_catalog']:GetVehicleInfo(model)exports['coe_vehicle_catalog']:ListVehicles(filter)
→ CoeVehicleInfo[]
Lists all vehicles matching an optional multi-criteria filter.
| Parameter | Type |
|---|---|
filter | CoeVehicleFilter|nil |
local result = exports['coe_vehicle_catalog']:ListVehicles(filter)exports['coe_vehicle_catalog']:ListVehiclesPage(filter)
→ CoeVehiclePage
| Parameter | Type |
|---|---|
filter | CoeVehicleFilter|nil |
local result = exports['coe_vehicle_catalog']:ListVehiclesPage(filter)exports['coe_vehicle_catalog']:ListClasses()
→ {
No parameters.
local result = exports['coe_vehicle_catalog']:ListClasses()exports['coe_vehicle_catalog']:GetBaseHandling(model)
→ table<string,
Returns raw scalar parameters parsed from loaded `handling.meta` files (e.g., `fMass`), or `nil`.
| Parameter | Type |
|---|---|
model | string |
local ok, detail = exports['coe_vehicle_catalog']:GetBaseHandling(model)exports['coe_vehicle_catalog']:GetIssues()
→ CoeVehicleCatalogIssue[]
Returns validation warnings and errors detected across vehicle meta files and addon manifests.
No parameters.
local result = exports['coe_vehicle_catalog']:GetIssues()exports['coe_vehicle_catalog']:SetOverride(model, fields)
→ true|string
Merges and persists vehicle catalog overrides (pricing, stock, category). Restricted to `WriterResources`.
| Parameter | Type |
|---|---|
model | string |
fields | CoeVehicleOverride |
local result = exports['coe_vehicle_catalog']:SetOverride(model, fields)exports['coe_vehicle_catalog']:ClearOverride(model)
→ true|string
Removes existing overrides for the specified vehicle model. Restricted to `WriterResources`.
| Parameter | Type |
|---|---|
model | string |
local result = exports['coe_vehicle_catalog']:ClearOverride(model)exports['coe_vehicle_catalog']:Rescan()
→ true|string
Re-scans and re-indexes all vehicle resources on the server. Restricted to `WriterResources`.
No parameters.
local result = exports['coe_vehicle_catalog']:Rescan()exports['coe_vehicle_catalog']:IsReady()
→ boolean
Verifies if vehicle metadata indexing is complete and ready.
No parameters.
local result = exports['coe_vehicle_catalog']:IsReady()coe_catalog_info <modelo>
Shows the catalog data of a model. server console
coe_catalog_issues
Lists catalog issues (modelos, handling, source resource). server console
coe_catalog_rescan
Rescans available vehicles and refreshes the catalog. server console