loadReviews
exports["RiP-JobcenterV2"]:loadReviews(jobId, cb)
This function returns all job reviews
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
jobId | Integer | No | Filter job by it's id |
cb | Function | Yes | Callback function |
Returned Table
Name | Type | Explenation |
---|---|---|
name | String | Player name |
stars | Integer | Review stars (1-5) |
text | String | Review text |
key | String | Review 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)