Skip to main content

refreshJobs

exports["RiP-JobcenterV2"]:refreshJobs(cb) 

This function returns refresh/reload all jobcenter jobs

Arguments

NameTypeOptionalExplenation
cbFunctionYesCallback 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)