Zero Idle Consumption
Thread remains completely dormant when the player is not actively holding the target key.
coetargetSub-Tick Spatial Raycasting
Third-Person Contextual Interaction with Zero Idle Draw
coe_corecoe_ui
coetarget
10 exports · 3 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Replaces legacy floating 3D markers and proximity draw loops that polluted map views and wasted CPU ticks. Holding the interaction key projects a sub-tick raycast cone from the screen center, identifying vehicles, peds, doors, ATMs, and world objects with instantaneous action menus.
Utilizes FiveM Enhanced high-precision raycasting primitives with sub-tick interpolation, guaranteeing geometry detection even while traveling at high speeds.
Thread remains completely dormant when the player is not actively holding the target key.
Binds actions to specific vehicle models, shopkeeper peds, or prop hashes.
Volumetric collision polygons in world space for workstation areas, bank vaults, and doors.
Tactical reticle dynamically shifts color and pulses upon acquiring interactable targets.
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:
/targetdebug
exports.coetarget:AddTargetModel(model, options)
0.00 ms idle guaranteed
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coetarget']:AddTargetEntity(entity, options)
→ boolean
Registers interaction options for a specific entity.
| Parameter | Type |
|---|---|
entity | integer |
options | CoeTargetOption[] |
local result = exports['coetarget']:AddTargetEntity(entity, options)exports['coetarget']:RemoveTargetEntity(entity)
→ void
Removes target options for a specific entity.
| Parameter | Type |
|---|---|
entity | integer |
exports['coetarget']:RemoveTargetEntity(entity)exports['coetarget']:AddTargetModel(model, options)
→ boolean
Registers interaction options for all entities matching a model hash or name.
| Parameter | Type |
|---|---|
model | integer|string |
options | CoeTargetOption[] |
local result = exports['coetarget']:AddTargetModel(model, options)exports['coetarget']:RemoveTargetModel(model)
→ void
Removes target options for a model.
| Parameter | Type |
|---|---|
model | integer|string |
exports['coetarget']:RemoveTargetModel(model)exports['coetarget']:AddTargetGlobal(entityType, options)
→ boolean
Registers interaction options for all entities of a global category.
| Parameter | Type |
|---|---|
entityType | CoeTargetGlobalType |
options | CoeTargetOption[] |
local result = exports['coetarget']:AddTargetGlobal(entityType, options)exports['coetarget']:RemoveTargetGlobal(entityType)
→ void
Removes target options for an entity category.
| Parameter | Type |
|---|---|
entityType | CoeTargetGlobalType |
exports['coetarget']:RemoveTargetGlobal(entityType)exports['coetarget']:AddTargetSurface(options)
→ boolean
Registers options for any targeted surface; `entity` is 0 when raycast hits static map geometry.
| Parameter | Type |
|---|---|
options | CoeTargetOption[] |
local result = exports['coetarget']:AddTargetSurface(options)exports['coetarget']:RemoveTargetSurface()
→ void
Removes all registered surface target options.
No parameters.
exports['coetarget']:RemoveTargetSurface()exports['coetarget']:AddTargetZone(id, coords, radius, options)
→ boolean
Zona espacial esférica indexada em Grade de Hash Espacial de 64 bits (O(1) nas células vizinhas).
| Parameter | Type |
|---|---|
id | string |
coords | { |
radius | number |
options | CoeTargetOption[] |
local result = exports['coetarget']:AddTargetZone(id, coords, radius, options)exports['coetarget']:RemoveTargetZone(id)
→ void
| Parameter | Type |
|---|---|
id | string |
exports['coetarget']:RemoveTargetZone(id)[LMENU]
Toggle interaction target · +coetarget · rebindable in FiveM key bindings
/target
Toggles the interaction target.
/targetdebug
F8 diagnostics of the entity under the crosshair.