refreshJobs
exports["RiP-JobcenterV2"]:refreshJobs(cb)
This function returns refresh/reload all jobcenter jobs
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
cb | Function | Yes | Callback function |
Returned Table
Returns the jobcenter array like with loadJobs()
Example
exports['RiP-JobcenterV2]:refreshJobs(function(allJobs)
for r,p in pairs(allJobs) do
print(p.id)
end
end)