> For the complete documentation index, see [llms.txt](https://docs.kojascripts.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kojascripts.eu/new/dialogs/configuration/target.md).

# Target

{% code title="shared/config.lua" %}

```lua
Config.Target = {
    enabled = true,
    resource = 'ox_target',
}
```

{% endcode %}

* 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'`).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kojascripts.eu/new/dialogs/configuration/target.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
