Skip to content

Commit

Permalink
Fix stageUpdate bug and event not triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
zf-development committed Mar 24, 2023
1 parent 5f873fd commit fc816c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ local function updateJobStage(groupID, status, stage, val)
local m = getGroupMembers(groupID)
if not m then return end
for i=1, #m do
if m[i] then
TriggerClientEvent("qb-phone:client:AddGroupStage", m[i], status, EmploymentGroup[groupID].stage)
TriggerClientEvent('qb-phone:client:RefreshGroupsApp', m[i], EmploymentGroup, true)
end
if m[i] then
TriggerClientEvent("qb-phone:client:AddGroupStage", m[i], status, EmploymentGroup[groupID].stage)
TriggerEvent('qb-phone:group:stageUpdated', groupID, status, EmploymentGroup[groupID].stage, stage)
end
end
end exports('updateJobStage', updateJobStage)

Expand Down

0 comments on commit fc816c7

Please sign in to comment.