ModuleName for target and DisableTargeting added
This commit is contained in:
1 parent
4ee642fc37
commit
ea3b9040ce
4 files changed
+29
No files matched your search
@@ -16,6 +16,10 @@ local targetZones = {}
|
||||
|
||||
Target = Target or {}
|
||||
|
||||
Target.ModuleName = function()
|
||||
return resourceName
|
||||
end
|
||||
|
||||
Target.FixOptions = function(options)
|
||||
for k, v in pairs(options) do
|
||||
local action = v.onSelect or v.action
|
||||
@@ -31,6 +35,11 @@ Target.FixOptions = function(options)
|
||||
return options
|
||||
end
|
||||
|
||||
|
||||
Target.DisableTargeting = function(bool)
|
||||
exports['qb-target']:AllowTargeting(not bool)
|
||||
end
|
||||
|
||||
Target.AddGlobalPlayer = function(options)
|
||||
options = Target.FixOptions(options)
|
||||
exports['qb-target']:AddGlobalPlayer({
|
||||
|
||||
Reference in new issue
Block a user