mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 03:01:31 +00:00
Update main.lua
This commit is contained in:
@@ -337,7 +337,9 @@ 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, false)
|
||||
if isNew then
|
||||
Player(xPlayer.source).state:set('isNew', true, false)
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler("esx:setJob", function(_, job, lastJob)
|
||||
|
||||
Reference in New Issue
Block a user