ed
This commit is contained in:
parent
f333947ed9
commit
032ec698d8
50 changed files with 27 additions and 5845 deletions
|
@ -1,26 +0,0 @@
|
|||
if GetResourceState('ox_target') ~= 'started' or not Config.UseTarget then return end
|
||||
|
||||
function AddTargetModel(models, radius, options)
|
||||
local optionsNames = {}
|
||||
for i=1, #options do
|
||||
optionsNames[i] = options[i].name
|
||||
end
|
||||
RemoveTargetModel(models, optionsNames)
|
||||
exports.ox_target:addModel(models, options)
|
||||
end
|
||||
|
||||
function RemoveTargetModel(models, optionsNames)
|
||||
exports.ox_target:removeModel(models, optionsNames)
|
||||
end
|
||||
|
||||
function AddTargetZone(coords, radius, options)
|
||||
return exports.ox_target:addSphereZone({
|
||||
coords = coords,
|
||||
radius = radius,
|
||||
options = options
|
||||
})
|
||||
end
|
||||
|
||||
function RemoveTargetZone(index)
|
||||
exports.ox_target:removeZone(index)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue