Convert ox_target to qb-target in FiveM with ease.
- Convert ox_target interactions to qb-target
- Debug mode to visualize target entities
- FiveM server
- QB-Core framework
- qb-target resource
- Download the script from the GitHub repository.
- Extract the files into your FiveM resources folder.
- Add
ensure ox-to-qb-targetto your server.cfg file.
To set up a target entity, use the following event:
TriggerEvent('oxToQbTargetSystem:setupTarget', entity, options)To set up a target entity from the server, use the following event:
TriggerClientEvent('oxToQbTargetSystem:setupTarget', -1, entity, options)Edit the config.lua file to adjust settings:
Config = {}
-- Target settings
Config.Target = {
Distance = 2.5,
Width = 0.5,
Height = 0.5,
Debug = false
}
-- QB-Core settings
Config.QBCore = {
Framework = 'qb-core',
PlayerData = 'PlayerData'
}This plugin was generated in minutes with EnderDevelopment — the AI platform that turns your ideas into working Minecraft plugins, Discord bots and FiveM scripts.
Want your own? Generate this project on EnderDevelopment — describe it in one sentence and get the full source code.