Skip to content

Commit b965cdd

Browse files
authored
Update main.lua
1 parent 5cc766b commit b965cdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

[core]/es_extended/server/main.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ AddEventHandler("esx:playerLoaded", function(_, xPlayer, isNew)
337337

338338
Core.JobsPlayerCount[job] = (Core.JobsPlayerCount[job] or 0) + 1
339339
GlobalState[jobKey] = Core.JobsPlayerCount[job]
340-
Player(xPlayer.source).state:set('isNew', isNew, false)
340+
if isNew then
341+
Player(xPlayer.source).state:set('isNew', true, false)
342+
end
341343
end)
342344

343345
AddEventHandler("esx:setJob", function(_, job, lastJob)

0 commit comments

Comments
 (0)