QBCoreclient
QBCore:Client:OnJobUpdate
QBCore client documentation with a FiveM Lua example.
Summary
Client event fired when the player's job changes. Keep your cached PlayerData.job in sync by handling it (newer qb-core also emits OnPlayerUpdated).
Returns
event
Example
RegisterNetEvent('QBCore:Client:OnJobUpdate', function(job)
PlayerData.job = job
end)Common pitfalls
- If you cache job once and never listen for updates, your script uses stale job data after someone changes jobs.
- Newer qb-core versions may use QBCore:Client:OnPlayerUpdated with a key/value — handle both for compatibility.
Related functions
Related guides
Managing jobs on your server?
Viper Multi-Job lets players hold several jobs and switch between them with grade, salary and duty handled — QBCore, QBox and ESX, validated server-side.
See Viper Multi-Job →