Replace OXTarget with QBTarget
ATMs
First of all, go to modules/atms/client.lua and replace
exports.ox_target:addModel(Config.ATMModels, {
{
name = 'box',
onSelect = function()
openAtm()
end,
icon = 'fa-solid fa-piggy-bank',
label = locale('open_atm_target'),
}
}) replace above with this
exports['qb-target']:AddTargetModel(Config.ATMModels, {
options = {
{
icon = 'fa-solid fa-piggy-bank',
label = locale('openatmtarget'),
action = function()
openAtm()
end,
distance = 1.5,
},
},
}) Banks
First of all, go to modules/banks/client.lua and replace
exports.ox_target:addBoxZone({
coords = position.target.coords,
size = position.target.size,
rotation = position.target.rotation,
debug = false,
options = {
{
name = 'box',
onSelect = function()
openBank()
end,
icon = 'fa-solid fa-piggy-bank',
label = locale('open_bank_target'),
}
}
}) replace above with this
exports['qb-target']:AddBoxZone("Bank"..position.target.coords, position.target.coords, 1.45, 1.35,{
name = "Bank"..position.target.coords,
heading = 11,
minZ = position.target.coords.z - 1,
maxZ = position.target.coords.z + 1,
}, {
options = {
{
icon = 'fa-solid fa-piggy-bank',
label = locale('open_bank_target'),
action = function()
openBank()
end,
},
},
distance = 1.5
})