NEXO DOCSv1 · ENES
docs / scripts / nexo-target

Nexo Target

An interaction system with proximity and eye modes that replaces ox_target and qb-target without changing your scripts. 13 menu styles and a zone editor.

v1.0.0ESXQBCoreQBoxStandalone

What's included

Nexo Target is an interaction system with two modes that is a drop-in replacement for ox_target and qb-target: your scripts keep working without changes. It works with ESX, QBCore, Qbox or no framework and needs no database.

  • 13 menu styles (split, card, pill, line, blocks, slant, numbered, outline, compact, glass, terminal, neon and radial) and 6 markers, chosen by each player.
  • In-game zone editor for admins, with live changes and no restart.
  • Extras on every option: hold to use, confirm, uses, opening hours, separators, submenus and a progress bar with animation.
  • Locked options show the reason («You need: Lockpick», «Only for: police», «Get closer · 2.4 m»).
  • Debug mode to see zones and why each option is hidden.
  • 8 languages: Spanish, English, Portuguese, French, German, Italian, Polish and Turkish.
Version 1.0It's been tested with simulations (client and server with mocked natives, and the interface in the browser), not on a live server. Try it on your development server first.

Modes

Set it with Config.Mode:

ModeHow it works
proximityWalk up to something, a marker appears on it with a menu next to it. Change option with the mouse wheel or the arrows and use it with E (or hold it if the option asks). Backspace leaves a submenu.
eyeHold ALT, aim, the object gets an outline and its menu appears. Left click to use the mouse on the menu; ESC or right click to leave.
both (default)Both at once: proximity for what's in front of you and eye for aiming.

Proximity extras (Config.Proximity):

  • TAB jumps to the next target when there are several nearby; small dots mark the others (CycleWithTab).
  • Quick action: when a target has a single option, a small “E · Option” prompt shows instead of the menu (QuickAction).
  • No markers through walls (LineOfSight).
KeysPlayers can change them in «GTA Settings → Key Bindings → FiveM».

Installation

  1. Download the resource From keymaster.fivem.net → Granted Assets.
  2. Remove ox_target and qb-target Stop and remove both from your server: nexo_target replaces them.
    Don't run them togetherIf ox_target or qb-target are still started, they clash with nexo_target.
  3. Add it to server.cfg Before the scripts that use ox_target or qb-target:
    ensure nexo_target
    # ...después, los scripts que usan ox_target / qb-target
  4. Give admins access For the editor and debug. You can also use groups or identifiers in config_server.lua.
    add_ace group.admin nexotarget.admin allow
  5. No database Editor zones are saved in data/zones.json.

ox_target and qb-target compatibility

nexo_target registers as ox_target and qb-target (provide in the fxmanifest) and answers their exports:

ox_targetqb-target
addBoxZone, addSphereZone, addPolyZone, removeZone, zoneExistsAddBoxZone, AddCircleZone, AddPolyZone, AddComboZone, RemoveZone
addModel, removeModelAddTargetModel, RemoveTargetModel
addEntity, removeEntity, addLocalEntity, removeLocalEntityAddTargetEntity, RemoveTargetEntity, AddEntityZone
addGlobalPed/Vehicle/Object/Player, removeGlobal…, addGlobalOptionAddGlobalPed/Vehicle/Object/Player, RemoveGlobal…, AddTargetBone
disableTargeting, isActiveAllowTargeting, IsTargetActive, IsTargetSuccess

Supported options: label, name, icon (Font Awesome 6 included), distance, groups / job / gang (with minimum grade), items / item / anyItem, citizenid, canInteract, bones, onSelect, action, event, serverEvent, command, export and type (qb: client / server / command / qbcommand).

Option extras

They also work inside ox_target or qb-target options:

FieldWhat it does
hold = 2.0Hold for 2 seconds to use it.
confirm = trueHold to confirm.
uses = 1Uses per session.
hours = { 22, 6 }Only at those in-game hours.
group = 'Robo'Separator with a title.
sub = { … }Submenu with more options.
progress = { … }Progress bar with animation (and a prop in hand if the animation has one). It cancels with X, if you're hit or if you die; the option only runs if it finishes.
exports.nexo_target:AddBoxZone('tienda_caja', vec3(25.7, -1347.3, 29.5), vec3(1, 1, 2), {
    { label = 'Robar caja', icon = 'fa-solid fa-cash-register', item = 'lockpick',
      hold = 2.0, confirm = true, uses = 1, hours = { 22, 6 }, event = 'robbery:register' },
}, { rotation = 0 })

Player settings

With /targetsettings every player chooses, with a live preview:

  • 13 menu styles, including radial (options in a circle around the object).
  • 6 markers: ring, dot, diamond, brackets, halo and arrow.
  • Menu and marker size, and colour.

It's saved on each player's PC. Defaults are in Config.UI and you can lock what you don't want them to change in Config.PlayerSettings.Lock.

Config.UI = {
    Accent      = '#4d8dff',
    MenuStyle   = 'split',   -- card, split, pill, line, blocks, slant, numbered, outline, compact, glass, terminal, neon, radial
    MarkerStyle = 'ring',    -- ring, dot, diamond, brackets, halo, arrow
    MenuSize    = 100,       -- %
    MarkerSize  = 100,       -- %
    Sounds      = true,
}

Zone editor

With /targeteditor (admins):

  • Box or sphere: placed here or where you look, with position, size, rotation and radius.
  • Polygon: mark points on the ground where you look, with min and max height.
  • Model: aim at any object on the map (or type its name) and its options show on every object of that model.
  • Options: text, icon, action (client event, server event or command), requirements (job and grade, item, hours), hold, distance and a progress bar with animation.
  • Duplicate, export and import as JSON to move zones between servers.
  • Save applies changes to every player instantly, without a restart.

You can also add zones from Config.Zones, in the same format as the editor.

Debug with /targetdebug: draws nearby zones with their name, resource and number of options, and the menu also shows hidden options with the reason and which script added them.

Global options

In Config.GlobalOptions. Turn off the ones other scripts already give so they aren't duplicated.

  • Work out of the box, per car part: open/close door and “Get in here” only show at the door you're next to; the boot, at the back; and the bonnet, at the front.
  • Need your server's event (off by default): give keys, search, lift up, show ID and carry.
Markers on carsWith vehicle options on, the marker shows when you're next to any car's door, boot or bonnet. If you don't want that, turn them off.

Performance and notes

  • With the eye closed and nothing nearby, the main loop sleeps (150-200 ms). Measure with resmon on your server, as it depends on how many options your scripts register.
  • The object outline uses FiveM's outline natives (recent game build).
  • Icons: Font Awesome Free 6.5 included. Font: Inter.

Editable files

FileWhat for
config.luaLanguage, framework, mode, proximity, eye, default style, global options, animations and zones.
config_server.luaAdmin permissions for the editor and debug.
client/bridge.luaYour framework's jobs and items, so you can adapt them.
client/globals.luaGlobal vehicle and player options.
locales/ · web/style.cssTexts in 8 languages and menu styles.

FAQ

Do I have to change my scripts?

No. nexo_target registers as ox_target and qb-target and answers their exports. Remove both, start nexo_target before your scripts and everything keeps working.

Can I keep a single mode?

Yes. Config.Mode = 'proximity', 'eye' or 'both' (default).

Is the code encrypted?

The core is protected with Cfx.re escrow. Config, translations and integration points stay open.

Do I get updates?

Yes, for free. New versions appear in your Keymaster and we announce them on Discord.

What if something doesn't work?

Open a ticket on our Discord with the console error and we'll help you.