๐Ÿค 
KOJA DOCS
  • Home
  • Store
  • Discord
  • lib
    • Client
  • NEW
    • ๐Ÿš—Cardealer
      • Installation
      • Configuration
        • Creating a Cardealer
        • Changing Language
        • Creating a webhook for logging
    • ๐ŸŽDaily Rewards
      • Installation
      • Configuration
        • ๐Ÿ‡ต๐Ÿ‡ฑChanging Language
        • ๐Ÿ›ก๏ธDebug Prints
        • ๐ŸšชOpen Commands
        • ๐Ÿ›’Shop Link
        • โœ๏ธTheme
        • ๐Ÿ–ฅ๏ธAuto Table
        • ๐ŸŽRewards
        • ๐ŸŽŸ๏ธMissions
        • ๐Ÿ“”Promocodes
      • Guides
        • โœˆ๏ธCreating/Editing Locales
        • ๐Ÿ”ซManaging Missions
        • ๐Ÿ’ŽSetting Premium Status
    • ๐Ÿ“ŠHud
      • Installation
      • Configuration
        • ๐Ÿ‡ต๐Ÿ‡ฑChanging Language
        • ๐Ÿ›ก๏ธDebug Prints
        • ๐ŸšชSettings Command
        • ๐Ÿ—บ๏ธHide Minimap
        • ๐Ÿ—’๏ธNotifications
        • ๐ŸŽ๏ธNitro
        • โš™๏ธEngine
        • ๐Ÿ’บSeatbelt
        • ๐Ÿค–Cruisemode
      • Guides
        • โœˆ๏ธCreating/Editing Locales
        • ๐Ÿ”—Progressbar
        • โ„น๏ธTextUI
    • ๐Ÿ”ซShop Heist
      • Installation
      • Configuration
        • ๐Ÿ‡ต๐Ÿ‡ฑChanging Language
        • ๐Ÿ‘ฎRequired Police To Start Heist
  • ๐Ÿ›’Shops
    • Installation
    • Configuration
      • ๐Ÿ‡ต๐Ÿ‡ฑChanging Language
      • ๐ŸŽฏTarget
      • ๐Ÿ›๏ธAdding new shop
      • ๐Ÿš—Server side exports
      • ๐Ÿ“ƒSQL
    • Guides
      • โœˆ๏ธCreating/Editing Locales
  • ๐Ÿ“œDialogs
    • Installation
    • Configuration
      • ๐Ÿ‡ต๐Ÿ‡ฑChanging Language
      • ๐ŸŽฏTarget
      • ๐Ÿ“ƒCreate Dialog
      • ๐ŸŽนAvailable Keys
      • ๐ŸŒ€Default Images
  • OLD
    • ๐ŸŽ“Jobselector [FREE]
      • ๐Ÿ“•Step By Step Guide
      • โš™๏ธServer
    • ๐Ÿ› ๏ธCrafting [FREE]
      • ๐Ÿ“•Step By Step Guide
      • ๐Ÿ‘‡Client
      • ๐Ÿ‘†Server
Powered by GitBook
On this page
  1. Dialogs
  2. Configuration

Target

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

PreviousChanging LanguageNextCreate Dialog

Last updated 8 days ago

๐Ÿ“œ
๐ŸŽฏ