Dynamic Exertion Decay
Heavy physical activities naturally accelerate caloric and water consumption.
coe_needsMetabolism, Physiology & Needs
Realistic Metabolic Decay with Overexertion & Dehydration
coe_corecoe_hud
coe_needs
3 exports · 0 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Calculates caloric burn, hydration decay, and stress accumulation based on physical player exertion (sprinting, swimming, jumping). Severe dehydration results in gradual health loss and blurred peripheral vision; quality meals restore stamina and grant temporary endurance buffs.
Decoupled sub-tick interval updates; mathematical calculations process in background batches without impacting frametimes.
Heavy physical activities naturally accelerate caloric and water consumption.
Dehydration penalizes sprint velocity and blurs camera edges.
High-quality chef meals grant accelerated stamina regeneration.
Mathematical routines run asynchronously without frame latency impact.
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_needs']:GetNeeds(playerSource)
→ CoeNeedsSnapshot|nil
[shared] On server receives `playerSource`; on client takes no arguments and returns the local snapshot.
| Parameter | Type |
|---|---|
playerSource optional | integer |
local result = exports['coe_needs']:GetNeeds(playerSource)exports['coe_needs']:SetNeed(playerSource, needName, value)
→ boolean|'caller_not_allowed'|'character_not_loaded'|'invalid_need'
[server] Sets the absolute value (0..100) of a vital need. Requires ACE `coe.needs`.
| Parameter | Type |
|---|---|
playerSource | integer |
needName | CoeNeedName |
value | number |
local result = exports['coe_needs']:SetNeed(playerSource, needName, value)exports['coe_needs']:AddNeed(playerSource, needName, delta)
→ boolean|'caller_not_allowed'|'character_not_loaded'|'invalid_need'
[server] Adds `delta` (positive or negative) to a vital need. Requires ACE `coe.needs`.
| Parameter | Type |
|---|---|
playerSource | integer |
needName | CoeNeedName |
delta | number |
local result = exports['coe_needs']:AddNeed(playerSource, needName, delta)This module registers no commands: it is driven by exports and events.