Target Options Configuration
In the config.lua file, you can configure which targeting system your script will use. The available options are qtarget, qb-target, ox_target, and default (ShowHelpNotification). Follow the instructions below to set your preferred targeting option.
Step 1: Selecting Your Target Option
Locate the target section in your config.lua or cfg.lua file. This section controls which targeting system is active.
Configuration Options:
-- WARNING: Default mode will consume more ms. This option may cause performance loss!
targetScript = 'default', -- Target script name (qtarget or qb-target or ox_target or default (for showhelpnotification))qtarget
If you choose qtarget, ensure you have the corresponding integration set up.
Set the target option in
config.lua:
-- WARNING: Default mode will consume more ms. This option may cause performance loss!
targetScript = 'qtarget', -- Target script name (qtarget or qb-target or ox_target or default (for showhelpnotification))Ensure that
qtargetis correctly installed and started on your server.
qb-target
If you choose qb-target, ensure you have the corresponding integration set up.
Set the target option in
config.lua:
-- WARNING: Default mode will consume more ms. This option may cause performance loss!
targetScript = 'qb-target', -- Target script name (qtarget or qb-target or ox_target or default (for showhelpnotification))Ensure that
qb-targetis correctly installed and started on your server.
ox_target
If you choose ox_target, ensure you have the corresponding integration set up.
Set the target option in
config.lua:
-- WARNING: Default mode will consume more ms. This option may cause performance loss!
targetScript = 'ox_target', -- Target script name (qtarget or qb-target or ox_target or default (for showhelpnotification))Ensure that
ox_targetis correctly installed and started on your server.
default (ShowHelpNotification)
The default option will display help notifications instead of using an advanced targeting system.
Set the target option in
config.lua:
-- WARNING: Default mode will consume more ms. This option may cause performance loss!
targetScript = 'default', -- Target script name (qtarget or qb-target or ox_target or default (for showhelpnotification))This option does not require additional setup beyond ensuring that the
ShowHelpNotificationfunctionality is properly implemented in your script.
Step 2: Applying the Configuration
Save the Changes:
After selecting your desired target system, save the changes to your
config.luafile.
Restart Your Server:
Restart your server to apply the new configuration.
Test the Targeting System:
Verify that the selected targeting system is working as expected. Test interactions and ensure that the functionality matches the chosen option.
Troubleshooting
Targeting System Not Working: Ensure that the chosen target system is installed and correctly configured. Double-check your
config.luafile for typos.Interactions Not Displaying: Verify that the integration with the target system is correctly set up and that there are no conflicts with other resources.
Last updated