Skip to main content

loadReviews

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

This function returns all job reviews

Arguments

NameTypeOptionalExplenation
jobIdIntegerNoFilter job by it's id
cbFunctionYesCallback function

Returned Table

NameTypeExplenation
nameStringPlayer name
starsIntegerReview stars (1-5)
textStringReview text
keyStringReview key (unique id)

Example

local jobId = 9

exports['RiP-JobcenterV2]:loadReviews(jobId, function(jobReviews)
for r,p in pairs(jobReviews) do
print(p.key)
end
end)