Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-09-28 09:58:56 -07:00
1 parent 5c88857368
commit 37ba74a700
1 file changed
+11
+11
View File
@@ -359,6 +359,17 @@ function AddBoxZoneMulti(name, table, data)
end end
end end
function AddBoxZoneMultiOptions(name, table, data)
if Config.Target == 'qb' then
exports['qb-target']:AddBoxZone(name .. k, v.loc, 1.5, 1.75, {name = name..k, minZ = v.loc.z-1.50,maxZ = v.loc.z +1.5},
{ options = table, distance = 2.5})
elseif Config.Target == 'ox' then
exports.ox_target:addBoxZone({coords = v.loc, size = vec3(1,1,1), options = table })
end
end
function AddSingleModel(model, data, num) function AddSingleModel(model, data, num)
if Config.Target == 'qb' then if Config.Target == 'qb' then
exports['qb-target']:AddTargetEntity(model, {options = { exports['qb-target']:AddTargetEntity(model, {options = {