↔️Exports

getGroupId

returns the group id of the player

-- Params:
-- identifier, number|string - The identifier of the player by source or citizenid

-- Exemple:
local groupId = exports['zf-groups']:getGroupId(id: 3)

-- Returns:
381

getMembers

returns a table of members inside the group.

-- Params:
-- groupId, number - The groupId or source of the targeted player.
-- isSource, boolean - If you have passed a player source, set it to true.

-- Exemple:
local groupMembers = exports['zf-groups']:getMembers(groupId, false)

-- Returns:
{
    {
        source = 2,
        citizenid = 'YZO12345',
        name = 'LeZach Dev'
    },
    {
        source = 5,
        citizenid = 'ZKD93103',
        name = 'ZF Labo'
    }
}

getSize

return the group size.

getLeader

return the group owner's data

destroyGroup

destroy the specified group

isLeader

returns if the specified player is the leader/owner of the group

notifyGroup

send a notification to all the players inside the group. the notifications uses ox_lib data.

leaveGroup

makes the player leave is current group

updateMembers

force the client data to be updated

addTask

add a task to the group tasks

removeTask

remove a specified task from the group tasks

completeTask

complete the on-going task that the group is currently working on rarely used. more likely to use the nextStep export.

nextStep

pass to the next step of the task. if there is no next step, it moves to the next task

updateTasks

update all the tasks of the group

getTasks

returns a table with all the tasks of the group

setJob

set the job data for the group

leaveJob

leave the group job

resetJobData

resets the group job data

syncEntity

sync entity data for all group members

setBlip

set the group blip

removeBlip

remove the group blip

Last updated