Installation
Install ox_target by MrPoulpi Labs — dependencies, backup, exact folder name, replacing the old resource, start order and first in-game test.
Goal: replace your ox_target (or qtarget / qb-target) with this edition without breaking the resources that use it.
Files involved: the resources/…/ox_target folder and your server.cfg.
Requirements
| Item | Requirement observed in the archive |
|---|---|
| ox_lib | Required (dependency 'ox_lib'). Version 3.30.0 minimum, checked at client and server start. |
| Framework | Optional: ESX, QBCore, Qbox, ox_core, ND or none. |
| Third-party resources | Optional: emotes, medical, inventory, notifications, weather, keys, billing, repair, appearance. |
| ox_core | If used: 0.21.3 minimum for the native groups module. |
| qbx_core | If used: 1.18.0 minimum for the native groups module. |
The resource declares provide 'qtarget' and provide 'qb-target': scripts calling qtarget or qb-target exports are redirected to it.
Steps
Back up your current ox_target folder and your
server.cfg. If you had modified ox_target, write down your options: they must be recreated inconfig_interactions.luaor stay in your own resources through the exports.Stop the server, then delete or move out of
resources/the old ox_target resource as well as qtarget and qb-target. Two resources providing the same name conflict.Copy the folder from the archive into
resources/and name it exactlyox_target. The name matters: other scripts callexports.ox_target, and the NUI uses the resource name for its requests.Set the start order in
server.cfg: ox_lib, your framework, your inventory, then ox_target, then the scripts that add options.ensure ox_lib ensure es_extended ensure ox_inventory ensure ox_target ensure my_job_scriptsReplace
es_extendedandox_inventorywith your own resources. The native groups module detects the framework when ox_target starts client side: if the framework starts later, thegroupsfilter of options will not work.Choose your integrations in
config.lua(theConfig.*Scriptsection).'auto'values detect started resources; the exact list is in Integrations.Start the server and open the server console and F8 on the client.
Checks after start
- The server console must show no
ox_targeterror while loading. A version message fromlib.versionCheckmay appear: it compares the resource with Overextended’s releases, not MrPoulpi Labs’. - In F8, no yellow
[ox_target]line should report an unknown built-in (builtin inconnu), a duplicate option name (nom d'option en double) or an option without a name (option sans 'name' ignorée). The engine prints these messages in French. resmonmust show ox_target started once, without separate qtarget or qb-target.
First test
- Hold left Alt (default key
LMENU): the cursor appears. - Aim at your own character: the Self menu shows up (Mon ID, Faire un /me, Emotes… with the shipped French labels).
- Click Mon ID: a notification shows your server ID.
- Aim at a vehicle within 2 m of a door: the original door options appear.
If nothing shows up, see Troubleshooting.
Common mistakes
- Folder named
ox_target-mainorox_target(5): other scripts cannot find theox_targetexports. Rename the folder. - ox_lib too old:
lib.checkDependencyblocks the start. Update ox_lib. - Old qtarget still started:
provideconflict. Remove it fromserver.cfg. - Framework started after ox_target:
groupsfilters have no effect; fix theensureorder.