loadJobs
exports["RiP-JobcenterV2"]:loadJobs(jobId, cb)
This function returns all jobcenter jobs (with filter)
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
jobId | Integer | Yes | Filter job by it's id |
cb | Function | Yes | Callback function |
Returned Table
Name | Type | Explenation |
---|---|---|
id | Integer | Job id |
name | String | Job name |
grade | Integer | Job grade |
label | String | Job label |
salary | Integer | Job salary |
fees | Integer | Jobcenter agency fee |
reviews | Array | All job reviews |
Example
local jobId = 9
exports['RiP-JobcenterV2]:loadJobs(jobId, function(xJob)
print(xJob.name)
end)