Update main.lua

This commit is contained in:
Mr Sneaky
2025-08-22 18:36:51 +02:00
committed by GitHub
parent c2d7898e1f
commit 5cc766be67
+1 -1
View File
@@ -337,7 +337,7 @@ AddEventHandler("esx:playerLoaded", function(_, xPlayer, isNew)
Core.JobsPlayerCount[job] = (Core.JobsPlayerCount[job] or 0) + 1
GlobalState[jobKey] = Core.JobsPlayerCount[job]
Player(xPlayer.source).state:set('isNew', isNew, true)
Player(xPlayer.source).state:set('isNew', isNew, false)
end)
AddEventHandler("esx:setJob", function(_, job, lastJob)