Skip to content

Commit

Permalink
fix(server/player): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Nov 11, 2024
1 parent 6d5c98e commit 9ac5d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ function CreatePlayer(playerData, Offline)
AddEventHandler('qbx_core:server:onJobUpdate', function(jobName, job)
if self.PlayerData.job.name ~= jobName then return end
if not job then
self.Functions.setJob('unemployed', 0)
SetJob(self.PlayerData.source, 'unemployed', 0)
return
end
self.PlayerData.job.label = job.label
Expand Down

0 comments on commit 9ac5d07

Please sign in to comment.