Ranks 0–9
Hierarchy with a name per rank.
coe_factionsIllegal Factions
Gangs, mafias and chop shops with ranks, members and unlocked crafts
coe_corecoe_databasecoe_logging
coe_factions
17 exports · 0 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Illegal factions (gangs, mafias, ghettos, chop shops and more): registry, ranks 0 to 9, members (offline included, and a character can be in several), crafting recipes unlocked by minimum rank and physical stations (benches and stashes). Everything is created and edited in the admin panel; legal jobs belong to businesses.
An inactive faction unlocks no crafts and exposes no benches or stashes, but keeps its members: a faction can be paused without losing anything.
Hierarchy with a name per rank.
Recipes unlocked from a minimum rank.
Faction benches and stashes in the world.
A character can belong to more than one.
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_factions']:CanCraft(characterId, recipeId)
→ any
Export server CanCraft (server/main.lua).
| Parameter | Type |
|---|---|
characterId | any |
recipeId | any |
local result = exports['coe_factions']:CanCraft(characterId, recipeId)exports['coe_factions']:CanCraftInFaction(factionId, characterId, recipeId)
→ any
Export server CanCraftInFaction (server/main.lua).
| Parameter | Type |
|---|---|
factionId | any |
characterId | any |
recipeId | any |
local result = exports['coe_factions']:CanCraftInFaction(factionId, characterId, recipeId)exports['coe_factions']:Categories()
→ any
Export server Categories (server/main.lua).
No parameters.
local result = exports['coe_factions']:Categories()exports['coe_factions']:Delete(factionId)
→ any
Export server Delete (server/main.lua).
| Parameter | Type |
|---|---|
factionId | any |
local result = exports['coe_factions']:Delete(factionId)exports['coe_factions']:Get(factionId)
→ any
Export server Get (server/main.lua).
| Parameter | Type |
|---|---|
factionId | any |
local result = exports['coe_factions']:Get(factionId)exports['coe_factions']:IsReady()
→ any
Export server IsReady (server/main.lua).
No parameters.
local result = exports['coe_factions']:IsReady()exports['coe_factions']:List()
→ any
Export server List (server/main.lua).
No parameters.
local result = exports['coe_factions']:List()exports['coe_factions']:Members(factionId)
→ any
Export server Members (server/main.lua).
| Parameter | Type |
|---|---|
factionId | any |
local result = exports['coe_factions']:Members(factionId)exports['coe_factions']:Memberships(characterId)
→ any
Export server Memberships (server/main.lua).
| Parameter | Type |
|---|---|
characterId | any |
local result = exports['coe_factions']:Memberships(characterId)exports['coe_factions']:PauseMenuFaction(characterId)
→ any
Returns the first active faction for the character's dossier in the pause menu dossier providers.
| Parameter | Type |
|---|---|
characterId | any |
local result = exports['coe_factions']:PauseMenuFaction(characterId)exports['coe_factions']:RecipesFor(characterId)
→ any
Export server RecipesFor (server/main.lua).
| Parameter | Type |
|---|---|
characterId | any |
local result = exports['coe_factions']:RecipesFor(characterId)exports['coe_factions']:RecipesForFaction(factionId, characterId)
→ any
Returns recipes specifically unlocked for this member of the faction, or nil if they are not a member or the faction is inactive.
| Parameter | Type |
|---|---|
factionId | any |
characterId | any |
local result = exports['coe_factions']:RecipesForFaction(factionId, characterId)exports['coe_factions']:RemoveMember(factionId, characterId)
→ any
Export server RemoveMember (server/main.lua).
| Parameter | Type |
|---|---|
factionId | any |
characterId | any |
local result = exports['coe_factions']:RemoveMember(factionId, characterId)exports['coe_factions']:Save(raw)
→ any
Export server Save (server/main.lua).
| Parameter | Type |
|---|---|
raw | any |
local result = exports['coe_factions']:Save(raw)exports['coe_factions']:SetMember(factionId, characterId, grade)
→ any
Export server SetMember (server/main.lua).
| Parameter | Type |
|---|---|
factionId | any |
characterId | any |
grade | any |
local result = exports['coe_factions']:SetMember(factionId, characterId, grade)exports['coe_factions']:TabletCall(playerId, appId, action, payload, factionId)
→ any
Export server TabletCall (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
appId | any |
action | any |
payload | any |
factionId | any |
local result = exports['coe_factions']:TabletCall(playerId, appId, action, payload, factionId)exports['coe_factions']:TabletInstances(playerId)
→ any
Export server TabletInstances (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
local result = exports['coe_factions']:TabletInstances(playerId)This module registers no commands: it is driven by exports and events.