Rank Permissions
police.cuff, fine, jail, records, search, seize and escort.
coe_policePolice
Cuff, fine, search, seize, escort and jail on top of coe_businesses
coe_corecoe_databasecoe_loggingcoe_businessescoe_economycoe_inventory
coe_police
12 exports · 7 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Plug-and-play police on top of coe_businesses and coe_economy: staff, ranks and salaries live in the police-category business (stations). Actions /algemar, /soltar, /multar, /revistar, /apreender, /escoltar and /prender, each with a rank permission, all validated on the server (duty, category, rank, target state and distance). Fines go to the society account and to the criminal record.
No parallel officer list: anyone on duty in a police business with the rank permission can act.
police.cuff, fine, jail, records, search, seize and escort.
Duty, rank, state and distance checked.
Revenue goes to the station cash.
Fines and arrests recorded per character.
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_police']:Arrest(officerSource, targetSource, minutes, charge)
→ any
Export server Arrest (server/main.lua).
| Parameter | Type |
|---|---|
officerSource | any |
targetSource | any |
minutes | any |
charge | any |
local result = exports['coe_police']:Arrest(officerSource, targetSource, minutes, charge)exports['coe_police']:Cuff(officerSource, targetSource)
→ any
Export server Cuff (server/main.lua).
| Parameter | Type |
|---|---|
officerSource | any |
targetSource | any |
local result = exports['coe_police']:Cuff(officerSource, targetSource)exports['coe_police']:Escort(officerSource, targetSource)
→ any
Export server Escort (server/main.lua).
| Parameter | Type |
|---|---|
officerSource | any |
targetSource | any |
local result = exports['coe_police']:Escort(officerSource, targetSource)exports['coe_police']:Fine(officerSource, targetSource, amount, charge)
→ any
Export server Fine (server/main.lua).
| Parameter | Type |
|---|---|
officerSource | any |
targetSource | any |
amount | any |
charge | any |
local result = exports['coe_police']:Fine(officerSource, targetSource, amount, charge)exports['coe_police']:IsCuffed(source)
→ any
Export server IsCuffed (server/main.lua).
| Parameter | Type |
|---|---|
source | any |
local result = exports['coe_police']:IsCuffed(source)exports['coe_police']:IsEscorted(source)
→ any
Export server IsEscorted (server/main.lua).
| Parameter | Type |
|---|---|
source | any |
local result = exports['coe_police']:IsEscorted(source)exports['coe_police']:IsJailed(source)
→ any
Export server IsJailed (server/main.lua).
| Parameter | Type |
|---|---|
source | any |
local result = exports['coe_police']:IsJailed(source)exports['coe_police']:Records(officerSource, subjectCharacterId, limit)
→ any
Returns a character's criminal record. Requires police.records in a police-category business.
| Parameter | Type |
|---|---|
officerSource | any |
subjectCharacterId | any |
limit | any |
local result = exports['coe_police']:Records(officerSource, subjectCharacterId, limit)exports['coe_police']:RegisterArrestInterceptor(def)
→ true|{
Registra um interceptador de jurisdição para prisões/multas (ex.: transferência de custódia). Requer ACE coe.police.extend.
| Parameter | Type |
|---|---|
def | { |
local result = exports['coe_police']:RegisterArrestInterceptor(def)exports['coe_police']:Search(officerSource, targetSource)
→ any
Export server Search (server/main.lua).
| Parameter | Type |
|---|---|
officerSource | any |
targetSource | any |
local result = exports['coe_police']:Search(officerSource, targetSource)exports['coe_police']:Seize(officerSource, targetSource, slot, count)
→ any
Export server Seize (server/main.lua).
| Parameter | Type |
|---|---|
officerSource | any |
targetSource | any |
slot | any |
count | any |
local result = exports['coe_police']:Seize(officerSource, targetSource, slot, count)exports['coe_police']:Uncuff(officerSource, targetSource)
→ any
Export server Uncuff (server/main.lua).
| Parameter | Type |
|---|---|
officerSource | any |
targetSource | any |
local result = exports['coe_police']:Uncuff(officerSource, targetSource)/algemar <id>
Cuffs the player (police.cuff permission, on duty).
/apreender <id> <slot> <qtd>
Seizes an item from the cuffed player (police.seize).
/escoltar <id>
Escorts the cuffed player (police.escort).
/multar <id> <valor> <motivo>
Fines the player; revenue goes to the station society (police.fine).
/prender <id> <minutos> [motivo]
Jails the cuffed player for the given time and records it (police.jail).
/revistar <id>
Searches the cuffed player inventory (police.search).
/soltar <id>
Uncuffs the player (police.cuff).