Util

Class providing several util functions.

Functions

Util.FindClientCharacter(character)

Returns the Client that is currently controlling the Character, returns nil if no Client is controlling the Character.

Parameters

  • character

Util.GetItemGroup(groupName)

Returns a table with all items associated with the item group.

Parameters

  • groupName

Util.GetItemsById(id)

Returns a table with all items that have the given identifier.

Parameters

  • id

Util.RegisterItemGroup(groupName, func)

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.

Parameters

  • groupName

  • func