From the reference libraryFiveM

Toggle targeting when pressing the hotkey, instead of holding it down.

ox/ox_target/index.mdx

Toggle targeting when pressing the hotkey, instead of holding it down.

setr ox_target:toggleHotkey 0

Change the key to enable targeting (https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard)

setr ox_target:defaultHotkey LMENU

Draw a sprite (circle) at the centroid of a zone.

setr ox_target:drawSprite 1

Enable built-in targeting options, e.g. toggling vehicle doors.

setr ox_target:defaults 1

Enable debugging / testing options, entity outlines, and a raycast indicator.

setr ox_target:debug 0

Enable / Disable leftclick to select options

setr ox_target:leftClick 1


## Supported Frameworks

These aren't necessary to run ox_target, but they will add additional features.

- [ox_core](https://github.com/overextended/ox_core)
- [esx](https://github.com/esx-framework/esx-legacy)
- [qbx_core](https://github.com/Qbox-project/qbx_core)
Back to documentation