Skip to main content

loadJobs

exports["RiP-JobcenterV2"]:loadJobs(jobId, cb) 

This function returns all jobcenter jobs (with filter)

Arguments

NameTypeOptionalExplenation
jobIdIntegerYesFilter job by it's id
cbFunctionYesCallback function

Returned Table

NameTypeExplenation
idIntegerJob id
nameStringJob name
gradeIntegerJob grade
labelStringJob label
salaryIntegerJob salary
feesIntegerJobcenter agency fee
reviewsArrayAll job reviews

Example

local jobId = 9

exports['RiP-JobcenterV2]:loadJobs(jobId, function(xJob)
print(xJob.name)
end)