Skip to content

Commit 03c61d7

Browse files
authored
Update sv_boss.lua
1 parent 56f2b60 commit 03c61d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/sv_boss.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ RegisterNetEvent('qb-bossmenu:server:FireEmployee', function(target)
140140
return
141141
end
142142
if Employee.Functions.SetJob('unemployed', '0') then
143-
exports["zerio-multijobs"]:RemoveJob(target, Player.PlayerData.job.name)
143+
exports["zerio-multijobs"]:RemoveJob(Employee.PlayerData.citizenid, Player.PlayerData.job.name)
144144
Employee.Functions.Save()
145145
TriggerClientEvent('QBCore:Notify', src, 'Employee fired!', 'success')
146146
TriggerEvent('qb-log:server:CreateLog', 'bossmenu', 'Job Fire', 'red', Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' successfully fired ' .. Employee.PlayerData.charinfo.firstname .. ' ' .. Employee.PlayerData.charinfo.lastname .. ' (' .. Player.PlayerData.job.name .. ')', false)

0 commit comments

Comments
 (0)