Skip to main content

esx:setJob

This event is triggered when the player has change his job

job Argument Information

childtypeexplanation
idnumber
namestring
labelstring
gradestring
grade_labelstring
salarynumber
skin_maletable
skin_femalenumber

lastJob Argument Information

It's the same as the job, only it contains the player's previous job

Example Client-Side Usage

RegisterNetEvent('esx:setJob', function(job, lastJob)
print('Client job is: ', job.label)
print('Last job ', job.label)
end)

Example Server-Side Usage

player Argument Information

The serverid of a player whose job has changed. (ONLY FOR SERVER SIDE!)

RegisterNetEvent('esx:setJob', function(player, job, lastJob)
print(player, ' job is: ', job.label)
print('Last job ', job.label)
end)