mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
Merge pull request #835 from esx-framework/tony-stark-17-patch-1
Send lastJob data to client
This commit is contained in:
@@ -386,7 +386,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
||||
end
|
||||
|
||||
TriggerEvent('esx:setJob', self.source, self.job, lastJob)
|
||||
self.triggerEvent('esx:setJob', self.job)
|
||||
self.triggerEvent('esx:setJob', self.job, lastJob)
|
||||
Player(self.source).state:set("job", self.job, true)
|
||||
else
|
||||
print(('[es_extended] [^3WARNING^7] Ignoring invalid ^5.setJob()^7 usage for ID: ^5%s^7, Job: ^5%s^7'):format(self.source, job))
|
||||
|
||||
Reference in New Issue
Block a user