RemoveGlobalVehicle

This commit is contained in:
MrNewb committed 2025-02-20 14:50:27 -05:00
1 parent d2990339e0
commit a8dc8efb00
2 files changed
+16

No files matched your search

+8
View File
@@ -38,6 +38,14 @@ Target.AddGlobalVehicle = function(options)
ox_target:addGlobalVehicle(options)
end
Target.RemoveGlobalVehicle = function(options)
local assembledLables = {}
for k, v in pairs(options) do
table.insert(assembledLables, v.name)
end
ox_target:removeGlobalVehicle(assembledLables)
end
Target.AddLocalEntity = function(entities, options)
options = Target.FixOptions(options)
ox_target:addLocalEntity(entities, options)
+8
View File
@@ -44,6 +44,14 @@ Target.AddGlobalVehicle = function(options)
})
end
Target.RemoveGlobalVehicle = function(options)
local assembledLables = {}
for k, v in pairs(options) do
table.insert(assembledLables, v.label)
end
exports['qb-target']:RemoveGlobalVehicle(assembledLables)
end
Target.AddLocalEntity = function(entities, options)
options = Target.FixOptions(options)
exports['qb-target']:AddTargetEntity(entities, {