Central Balance
One place for all city loot.
coe_lootLoot Tables
Centralized robbery loot with configurable rolls and weights
coe_corecoe_logging
coe_loot
3 exports · 1 command
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Robbery loot tables. Robbery scripts (house, pedestrian, vehicle, store, heists) do not keep their own item lists: they call the Give export when done and the loot comes from here. Each table has a number of rolls, weighted entries, empty rolls and unique items, keeping balance in one place.
Only authorized resources (Callers) can roll, and each item chance can be computed from the weights.
One place for all city loot.
Rolls, weights, empties and quantities.
Non-stacking items enter one at a time.
Only allowed resources generate loot.
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_loot']:Give(playerId, tableId)
→ CoeLootGiveResult
Rolls a loot table and delivers the result to the player's character inventory.
| Parameter | Type |
|---|---|
playerId | integer |
tableId | string |
local result = exports['coe_loot']:Give(playerId, tableId)exports['coe_loot']:Roll(tableId)
→ CoeLootRollResult
Rolls a loot table without delivering the result (for placing loot in a chest, container, or on the ground).
| Parameter | Type |
|---|---|
tableId | string |
local result = exports['coe_loot']:Roll(tableId)exports['coe_loot']:Tables()
→ {
Returns the loaded tables. Read access is unrestricted.
No parameters.
local result = exports['coe_loot']:Tables()/coe_loot_test <tabela>
Staff tool: rolls a loot table and gives the result to yourself (ACE command.coe_loot_test).