State

Group States

Groups can have states assigned to them (server side only) You can set and get the states for a group on both the server and then client.

These are intended to be used for storing information about the group that is not directly related to the group's members.

Example: checking a stage of completing a task or collecting a resource.

Exports

Server

    ---@param groupId number
    exports.groups:GetState(groupId)
 
    ---@param groupId number
    ---@param state string
    exports.groups:SetState(groupId, state)

Client

    exports.groups:GetState()