Compatibility
Core Focus includes a bridge layer that provides full export compatibility with ox_target, qb-target, and qtarget. Any script written for those systems works with Core Focus out of the box — no code changes needed.
How It Works
Bridge Layer
Automatically translates ox_target, qb-target, and qtarget export calls into native core_focus calls.
Resource Provides
Core Focus declares itself as ox_target, qb-target, and qtarget in fxmanifest — FiveM routes all exports to it.
Syntax Translation
Option fields from other systems (onSelect, groups, items) are converted to core_focus equivalents automatically.
lua
-- fxmanifest.lua
provide 'ox_target'
provide 'qb-target'
provide 'qtarget'INFO
When Core Focus starts, FiveM treats it as the provider for all three target systems. Any exports['ox_target'], exports['qb-target'], or exports['qtarget'] calls from other scripts are automatically routed to Core Focus.
ox_target Compatibility
All ox_target exports are supported:
| Export | Status |
|---|---|
addGlobalOption / removeGlobalOption | Supported |
addGlobalPed / removeGlobalPed | Supported |
addGlobalVehicle / removeGlobalVehicle | Supported |
addGlobalObject / removeGlobalObject | Supported |
addGlobalPlayer / removeGlobalPlayer | Supported |
addModel / removeModel | Supported |
addEntity / removeEntity | Supported |
addLocalEntity / removeLocalEntity | Supported |
addSphereZone / addBoxZone / addPolyZone | Supported |
removeZone | Supported |
disableTargeting | Supported |
isActive | Supported |
ox_target option fields like onSelect, groups, items, and anyItem are automatically converted to their core_focus equivalents.
qb-target Compatibility
All qb-target exports are supported:
| Export | Status |
|---|---|
AddBoxZone / AddCircleZone / AddPolyZone | Supported |
RemoveZone | Supported |
AddTargetBone / RemoveTargetBone | Supported |
AddTargetEntity / RemoveTargetEntity | Supported |
AddTargetModel / RemoveTargetModel | Supported |
AddGlobalPed / RemoveGlobalPed | Supported |
AddGlobalVehicle / RemoveGlobalVehicle | Supported |
AddGlobalObject / RemoveGlobalObject | Supported |
AddGlobalPlayer / RemoveGlobalPlayer | Supported |
qtarget Compatibility
All qtarget exports are supported with automatic option format conversion.
Permission System
The bridge layer also handles permission checking across frameworks:
lua
-- These work regardless of which target system syntax you use:
{
job = 'police', -- QB-Core job check
job = { police = 2 }, -- QB-Core job + grade check
gang = 'vagos', -- QB-Core gang check
groups = { police = 0 }, -- ox_target groups syntax (auto-converted)
item = 'lockpick', -- Item check
items = { lockpick = 1 }, -- ox_target items syntax (auto-converted)
}TIP
If you're migrating from another target system, just stop the old resource and start core_focus in its place. All your existing scripts will continue to work without any changes.
