Skip to content

Commit

Permalink
fix: proper spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Nov 11, 2024
1 parent 7683c3d commit 50ebc68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,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.PlayerData.job = {
name = 'unemployed',
Expand All @@ -918,7 +919,9 @@ function CreatePlayer(playerData, Offline)
else
self.PlayerData.job.label = job.label
self.PlayerData.job.type = job.type or 'none'

local jobGrade = job.grades[self.PlayerData.job.grade.level]

if jobGrade then
self.PlayerData.job.grade.name = jobGrade.name
self.PlayerData.job.payment = jobGrade.payment or 30
Expand Down

0 comments on commit 50ebc68

Please sign in to comment.