Skip to Content
QBCore docs – powered by Nextra 4
GuidesGuide: Create a Job

Goal

Create a new job and make it selectable in-game.

Steps

  1. Define job in qb-core/shared/jobs.lua:
    QBShared.Jobs['delivery'] = { label = 'Delivery', defaultDuty = true, grades = { ['0'] = { name = 'rookie', payment = 200 }, } }
  2. Grant job via server command:
    QBCore.Functions.CreateCallback('myresource:server:setJob', function(source, cb) local Player = QBCore.Functions.GetPlayer(source) Player.Functions.SetJob('delivery') cb(true) end)

Verification

Run /setjob id delivery 0 and ensure duty toggles.

Next Steps

Last updated on