Skip to content

Commit

Permalink
fix: close mdt on job change
Browse files Browse the repository at this point in the history
  • Loading branch information
BubbleDK committed Aug 24, 2024
1 parent f0dae4a commit 1f14a51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,13 @@ end)
RegisterNetEvent(framework.logoutEvent, function()
hasLoadedUi = false

if player.group then closeMdt(true) end
if framework.isJobPolice() then closeMdt(true) end
end)

RegisterNetEvent(framework.setGroupEvent, function()
local lastGroup = player.group

framework.getOfficerData()

if not player.group and lastGroup or (lastGroup and lastGroup ~= player.group) then
if not framework.isJobPolice() then
closeMdt(true)
end
end)
Expand Down
1 change: 0 additions & 1 deletion server/framework/qb_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ function qb.fetchRoster()
}
end

print(json.encode(rosterOfficers))
return rosterOfficers
end

Expand Down

0 comments on commit 1f14a51

Please sign in to comment.