T2 // Vehicles & Fleet

coe_vehicle_catalog

Vehicle Fleet Directory & Parameters

Centralized Vehicle Data Dictionary with Technical Specifications

HEADLESS SERVICE (NO UI)
DEPENDS ON 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.

01 // OVERVIEW

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.

On FiveM Enhanced

Static in-memory lookup table in C++ Lua with ultra-fast binary search, eliminating redundant database round-trips.

02 // FEATURES

What the module delivers

01

Centralized Fleet Data

Trunk volumes, fuel tank sizes, and categories maintained in a single structured schema.

02

Blue Book Market Valuation

Depreciation models calculated for used car markets and insurance payouts.

03

Realistic Cargo Capacity

Trunks calibrated to match visual car scale (ranging from 30kg up to 1000kg).

04

Engine Consumption Rates

Powerful V8 engines consume fuel at higher rates than compact 4-cylinder sedans.

ARCHITECTURAL LAYERS // CLEAN ARCHITECTURE

4-Layer Isolation with 0.00 ms Idle

Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:

L4
Headless Operation (No UI)
Zero DOM · CoE UI Delegation
Headless
L3
Application & Server
Atomic locks · Rate limiting
Auth Server
L2
Platform & HAL
Core.Platform · Mock natives
Gen9 HAL
L1
Domain & ACID Database
Prepared SQL · MariaDB pool
ACID Pool
LAYER 04 // HEADLESS SERVICE

Headless Service (No Dedicated NUI)

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.

Zero CEF graphic overhead: no background web pages or NUI bridges loaded
Typed public contracts (types.lua) consumed directly by external resources and UIs
Strict adherence to the Server-Authoritative model with zero direct DOM manipulation
ADMIN POWERS // OPERATION & MANAGEMENT

What this script delivers to Server Owners

Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:

🛡️
ACE Permissions
Administrative operations strictly protected by coe.staff and coe.admin principals.
IsPlayerAceAllowed(src, "coe.admin")
📊
Ledger Auditing
Relevant actions write audit records to the database through coe_audit.
exports.coe_audit:Record(severity, category, event, context)
⚡
0.00ms Idle Telemetry
Event-driven thread dispatch that stays dormant until network events fire.
Clean Architecture & HAL
03 // EXPORTS

Public API 10

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.

ParameterType
modelstring
LUA
local result = exports['coe_vehicle_catalog']:GetVehicleInfo(model)
exports['coe_vehicle_catalog']:ListVehicles(filter) → CoeVehicleInfo[]

Lists all vehicles matching an optional multi-criteria filter.

ParameterType
filterCoeVehicleFilter|nil
LUA
local result = exports['coe_vehicle_catalog']:ListVehicles(filter)
exports['coe_vehicle_catalog']:ListVehiclesPage(filter) → CoeVehiclePage

ParameterType
filterCoeVehicleFilter|nil
LUA
local result = exports['coe_vehicle_catalog']:ListVehiclesPage(filter)
exports['coe_vehicle_catalog']:ListClasses() → {

No parameters.

LUA
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`.

ParameterType
modelstring
LUA
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.

LUA
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`.

ParameterType
modelstring
fieldsCoeVehicleOverride
LUA
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`.

ParameterType
modelstring
LUA
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.

LUA
local result = exports['coe_vehicle_catalog']:Rescan()
exports['coe_vehicle_catalog']:IsReady() → boolean

Verifies if vehicle metadata indexing is complete and ready.

No parameters.

LUA
local result = exports['coe_vehicle_catalog']:IsReady()
04 // COMMANDS

In-game commands 3

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