πGet Groups
The basics to get Groups info.
QBCore.Functions.TriggerCallback('--:server:GetGroups', function(groups)
if groups then
for _, group in ipairs(groups.groups) do
print("Group Name: " .. group.name)
print("Leader: " .. group.leader)
end
else
print("Error")
end
end)-- #GET GROUPS# --
QBCore.Functions.CreateCallback('--:server:GetGroups', function(source, cb)
exports["nelo-tablet"]:NeloGetGroups(cb)
end)Last updated