mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Fixed duplicated department issue
You will now receive the right permissions for the right departments without any departments messing or getting duplicated.
This commit is contained in:
@@ -67,12 +67,10 @@ end)
|
||||
-- This is used to add department drop down on the ui.
|
||||
RegisterNetEvent("ND_CharacterSelection:permsChecked")
|
||||
AddEventHandler("ND_CharacterSelection:permsChecked", function(allowedRoles)
|
||||
for _, dept in pairs(allowedRoles) do
|
||||
SendNUIMessage({
|
||||
type = "givePerms",
|
||||
deptRole = dept
|
||||
})
|
||||
end
|
||||
SendNUIMessage({
|
||||
type = "givePerms",
|
||||
deptRoles = json.encode(allowedRoles)
|
||||
})
|
||||
end)
|
||||
|
||||
-- Gets all the characters and displays them on the ui.
|
||||
|
||||
Reference in New Issue
Block a user