Installation
Dependencies
- ox_lib (opens in a new tab) - Must start before cu_enchanced_target
Installation Steps
- Download or clone cu_enchanced_target
- Copy the resource folder into your
resourcesdirectory - Add to your
server.cfg:
ensure ox_lib
ensure cu_enchanced_target- Restart your server or use
refreshandensure cu_enchanced_target
Integration Options
This resource is compatible with ox_target, qtarget, and qb-target exports. The export name depends on the resource folder name.
Option A: Keep the folder name
If you keep the folder named cu_enchanced_target, update your scripts to use:
exports.cu_enchanced_target:addSphereZone({...})
exports.cu_enchanced_target:addModel(model, {...})
-- etc.Option B: Rename the folder (recommended for existing servers)
Rename cu_enchanced_target to match the exports your scripts already use:
- Rename to
ox_targetif your scripts useexports.ox_target:... - Rename to
qb-targetif your scripts useexports['qb-target']:... - Rename to
qtargetif your scripts useexports.qtarget:...
This keeps all existing code working without any changes.
Configuration
After installation, you can configure the resource in several ways:
Using config.lua
Edit the config.lua file to set:
- UI theme
- Target hint settings
- Debug options
See the Configuration page for details.
Using Server Convars
Add convars to your server.cfg for runtime configuration:
setr ox_target:defaultHotkey "LMENU" # Default: Left Alt
setr ox_target:toggleHotkey 0 # 0 = hold, 1 = toggle
setr ox_target:drawSprite 1 # Draw zone markers
setr ox_target:defaults 1 # Enable default options (vehicle doors, etc.)
setr ox_target:debug 0 # Enable debug mode
setr ox_target:leftClick 1 # 1 = left click, 0 = right clickVerification
To verify installation:
- Start your server
- Join the game
- Press Left Alt (or your configured hotkey)
- You should see the targeting eye appear
Troubleshooting
Target eye not appearing
- Ensure
ox_libis installed and starts before cu_enchanced_target - Check server console for errors
- Verify the resource is started: type
ensure cu_enchanced_targetin server console
Exports not working
- Check that you're using the correct export name matching your folder name
- If you renamed the folder, restart the entire server (not just
ensure)
Performance issues
- Disable debug mode if enabled
- Check your target options for overly large zones or too many global options