Target
When
Config.Target.enabled
is set totrue
, 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:No more DUI prompts. You no longer draw simple text popups or โPress Eโ prompts in the world.
No manual key checks. You donโt use
IsControlJustPressed(0, 38)
(E) orIsControlJustPressed(0, 47)
(C). Instead, you register every interactable zone or entity withox_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 inox_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'
).
Last updated