T3 // Vehicles & Fleet

coe_handling

Simulator Handling & Tyres

Per-class profiles, tyre compounds and wear applied to handling

HEADLESS SERVICE (NO UI)
DEPENDS ON coe_corecoe_databasecoe_loggingcoe_vehiclescoe_vehicle_catalogcoe_mechanic
coe_handling 6 exports · 2 commands

Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.

01 // OVERVIEW

Simulator-style handling per coe_vehicle_catalog class and category: more mass, less launch, realistic grip and braking, tuned per class (super, muscle, SUV, offroad...). Tyre compounds (street, sport and others) with their own grip, braking, rough-surface behavior and life; coe_mechanic part wear enters as a multiplier.

On FiveM Enhanced

The server publishes multipliers in state bags and the client applies them over the model's original handling, restored when the resource stops.

02 // FEATURES

What the module delivers

01

Per-Class Profile

Each catalog class has its own tuning.

02

Tyre Compounds

Grip, braking, rough surface and life per compound.

03

Integrated Wear

coe_mechanic parts become multipliers.

04

Clean Restore

Original values return when the resource stops.

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 6

Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.

exports['coe_handling']:GetTyre(vehicleId) → CoeTyreState|nil

ParameterType
vehicleIdnumber
LUA
local result = exports['coe_handling']:GetTyre(vehicleId)
exports['coe_handling']:SetTyre(vehicleId, compound) → true|string

Installs new tires and resets their wear. Restricted to resources in WriterResources.

ParameterType
vehicleIdnumber
compoundstring
LUA
local result = exports['coe_handling']:SetTyre(vehicleId, compound)
exports['coe_handling']:ListTyres() → string[]

No parameters.

LUA
local result = exports['coe_handling']:ListTyres()
exports['coe_handling']:ListClasses() → string[]

No parameters.

LUA
local result = exports['coe_handling']:ListClasses()
exports['coe_handling']:GetModifiers(vehicleId) → table<string,

Returns the final multipliers (profile x tire x wear) for each CHandlingData field.

ParameterType
vehicleIdnumber
LUA
local ok, detail = exports['coe_handling']:GetModifiers(vehicleId)
exports['coe_handling']:IsReady() → boolean

No parameters.

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

In-game commands 2

/coe_handling_dump

Tuning tool: prints the current vehicle handling multipliers.

/coe_tyre <placa> <composto>

Changes a vehicle tyre compound and resets wear (ACE command.coe_tyre).