CU Enhanced Target
Install

Installation

Dependencies

Installation Steps

  1. Download or clone cu_enchanced_target
  2. Copy the resource folder into your resources directory
  3. Add to your server.cfg:
ensure ox_lib
ensure cu_enchanced_target
  1. Restart your server or use refresh and ensure 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_target if your scripts use exports.ox_target:...
  • Rename to qb-target if your scripts use exports['qb-target']:...
  • Rename to qtarget if your scripts use exports.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 click

Verification

To verify installation:

  1. Start your server
  2. Join the game
  3. Press Left Alt (or your configured hotkey)
  4. You should see the targeting eye appear

Troubleshooting

Target eye not appearing

  • Ensure ox_lib is installed and starts before cu_enchanced_target
  • Check server console for errors
  • Verify the resource is started: type ensure cu_enchanced_target in 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