# Target

```lua title="shared/config.lua"
Config.Target = {
    enabled = true,
    resource = 'ox_target',
}
```


* When `Config.Target.enabled` is set to `true`, your script stops loading and showing its built-in DUI elements (text prompts, help messages, etc.) that relied on keyboard keys (like “Press E”).
* Instead, all object-interaction logic is handed over to the specified targeter (`ox_target` in this case). In practice, this means:
  1. **No more DUI prompts.** You no longer draw simple text popups or “Press E” prompts in the world.
  2. **No manual key checks.** You don’t use `IsControlJustPressed(0, 38)` (E) or `IsControlJustPressed(0, 47)` (C). Instead, you register every interactable zone or entity with `ox_target`, and it displays its own UI (icons, tooltips, reticle, etc.) and listens for a left-mouse click or whatever key(s) you’ve configured in `ox_target`.

In short: turning on `Config.Target.enabled = true` disables your old DUI-based prompts and delegates all “click-to-interact” behavior to the targeter (`resource = 'ox_target'`).

## Related pages

- [Changing Language](/new/dialogs/configuration/changing-language) — Explanation of the locale configuration in the script
- [Create Dialog](/new/dialogs/configuration/create-dialog) — Creating Dialogs
- [Available Keys](/new/dialogs/configuration/available-keys) — Keys in CreateDialog
- [Default Images](/new/dialogs/configuration/default-images) — By default, dialogs load item icons based on each respname.
- [Configuration](/new/dialogs/configuration) — back to the section overview
