Added Util.GetItemGroup and Util.RegisterItemGroup

This commit is contained in:
EvilFactory
2023-05-26 19:56:17 -03:00
parent be178715a8
commit abb9e1eb1d
2 changed files with 52 additions and 0 deletions

View File

@@ -12,6 +12,14 @@ local Util = {}
-- @realm shared
Util.GetItemsById = function (id) end
--- Registers a new item group, the given function will be called for every item and should return true if the item should be in the group.
-- @realm shared
Util.RegisterItemGroup = function(groupName, func) end
--- Returns a table with all items associated with the item group.
-- @realm shared
Util.GetItemGroup = function(groupName) end
--- Returns the Client that is currently controlling the Character, returns nil if no Client is controlling the Character.
-- @realm shared
Util.FindClientCharacter = function (character) end