ModuleName for target and DisableTargeting added

This commit is contained in:
MrNewb committed 2025-03-10 01:38:37 -04:00
1 parent 4ee642fc37
commit ea3b9040ce
4 files changed
+29

No files matched your search

+8
View File
@@ -17,6 +17,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
@@ -39,6 +43,10 @@ Target.AddGlobalPlayer = function(options)
ox_target:addGlobalPlayer(options)
end
Target.DisableTargeting = function(bool)
ox_target:disableTargeting(bool)
end
---comment
---@param options table
---@return nil