Racing Tablet
Races, organize, tracks, ranking and history.
coe_racesStreet Races
Illegal races with their own tablet, crypto buy-in, ranking and police risk
coe_corecoe_databasecoe_loggingcoe_ui
coe_races
2 exports · 2 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Street races across the city: illegal player races on checkpoint tracks, organized through the racing tablet (race_tablet item, /corridas). Crypto buy-in (coe_crypto), tracks recorded by driving (players and staff), driver ranking, per-track records, history, car classes and the risk of police showing up (coe_dispatch).
The app also shows in COE OS (Illegal group) for anyone carrying the item: no tablet, no race.
Races, organize, tracks, ranking and history.
Noxcoin stakes with prizes for the winners.
Created by driving, with map and records.
Police calls during the race.
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_races']:TabletVisible(playerId, appId)
→ boolean
Returns whether the racing app is available in COE OS. The player must carry the race_tablet item; only coe_tablet may call it.
| Parameter | Type |
|---|---|
playerId | integer |
appId | string |
local result = exports['coe_races']:TabletVisible(playerId, appId)exports['coe_races']:TabletCall(playerId, appId, action, payload)
→ table
Handles the racing app in COE OS (the same actions as the standalone tablet). Only coe_tablet may call it. Actions: state, setNickname, tracks, track, wallets, createRace, join, leave, startNow, cancelRace, leaderboard, history, startRecording, saveTrack, trackStatus, adminRaces. Errors: forbidden, not_ready, no_character, no_tablet, rate_limited, no_nickname, nickname_taken, unknown_track, unknown_race, race_full, race_started, already_racing, already_organizing, invalid_wallet, invalid_payout, insufficient_funds, crypto_unavailable, not_enough_races, too_few_checkpoints.
| Parameter | Type |
|---|---|
playerId | integer |
appId | string |
action | string |
payload | table |
local result = exports['coe_races']:TabletCall(playerId, appId, action, payload)/corridas
Opens the racing tablet (requires the race_tablet item).
/sairdacorrida
Leaves the current race.