refactor(target): added second var to remove specific options

This commit is contained in:
António Neves committed 2025-06-05 00:49:27 +01:00
1 parent 43db0053ee
commit a697c5b9db
3 files changed
+10 -7

No files matched your search

+3 -2
View File
@@ -80,8 +80,9 @@ end
---This will remove the target options from a local entity. This is useful for when you want to remove target options from a specific entity. ---This will remove the target options from a local entity. This is useful for when you want to remove target options from a specific entity.
---@param entity any ---@param entity any
Target.RemoveLocalEntity = function(entity) ---@param labels string | table | nil
ox_target:removeLocalEntity(entity) Target.RemoveLocalEntity = function(entities, optionNames)
ox_target:removeLocalEntity(entities, optionNames)
end end
---This will add target options to all specified models. This is useful for when you want to add target options to all models of a specific type. ---This will add target options to all specified models. This is useful for when you want to add target options to all models of a specific type.
+4 -3
View File
@@ -89,9 +89,10 @@ Target.AddLocalEntity = function(entities, options)
end end
---This will remove the target options from a local entity. This is useful for when you want to remove target options from a specific entity. ---This will remove the target options from a local entity. This is useful for when you want to remove target options from a specific entity.
---@param entity any ---@param entity number | table
Target.RemoveLocalEntity = function(entity) ---@param labels string | table | nil
qb_target:RemoveTargetEntity(entity) Target.RemoveLocalEntity = function(entity, labels)
qb_target:RemoveTargetEntity(entity, labels)
end end
---This will add target options to all specified models. This is useful for when you want to add target options to all models of a specific type. ---This will add target options to all specified models. This is useful for when you want to add target options to all models of a specific type.
+3 -2
View File
@@ -104,9 +104,10 @@ end
---comment ---comment
---@param entity number ---@param entity number
---@param labels string | table | nil
---@return nil ---@return nil
Target.RemoveLocalEntity = function(entity) Target.RemoveLocalEntity = function(entity, labels)
sleepless_interact:removeLocalEntity(entity) sleepless_interact:removeLocalEntity(entity, labels)
end end
---comment ---comment