Skip to content

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:

ExportStatus
addGlobalOption / removeGlobalOptionSupported
addGlobalPed / removeGlobalPedSupported
addGlobalVehicle / removeGlobalVehicleSupported
addGlobalObject / removeGlobalObjectSupported
addGlobalPlayer / removeGlobalPlayerSupported
addModel / removeModelSupported
addEntity / removeEntitySupported
addLocalEntity / removeLocalEntitySupported
addSphereZone / addBoxZone / addPolyZoneSupported
removeZoneSupported
disableTargetingSupported
isActiveSupported

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:

ExportStatus
AddBoxZone / AddCircleZone / AddPolyZoneSupported
RemoveZoneSupported
AddTargetBone / RemoveTargetBoneSupported
AddTargetEntity / RemoveTargetEntitySupported
AddTargetModel / RemoveTargetModelSupported
AddGlobalPed / RemoveGlobalPedSupported
AddGlobalVehicle / RemoveGlobalVehicleSupported
AddGlobalObject / RemoveGlobalObjectSupported
AddGlobalPlayer / RemoveGlobalPlayerSupported

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.