ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
QBCoreshared

QBCore.Shared.Jobs

QBCore shared documentation with a FiveM Lua example.

Summary

The table of all defined jobs and their grades in QBCore. Used to validate jobs and read grade info.

Returns

table — keyed by job name.

Example

local job = QBCore.Shared.Jobs['police']
print(job.label, job.grades['0'].name)

Common pitfalls

  • A job must exist here before SetJob will work cleanly.
  • Grades are keyed as strings in many versions.

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 →