RemoveGlobalVehicle
This commit is contained in:
1 parent
d2990339e0
commit
a8dc8efb00
2 files changed
+16
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user