Torrents Stats
TEAM_XXX = DarkRP.createJob("XXX", {
color = Color(0, 140, 255, 255),
model = {"model"},
description =
[[],
weapons = {""},
command = "cmd",
max = 3,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"vip","vip+","admin","admingeneral","superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
CustomCheckFailMsg = "Ce job est réservé aux VIPs." -- Allows you to tell the user what went wrong when attempting to switch jobs
})
Torrents Stats
customCheck = function(ply) return table.HasValue({"vip","admin","superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
CustomCheckFailMsg = "Ce job est réservé aux VIPs." -- Allows you to tell the user what went wrong when attempting to switch jobs
Torrents Stats
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 124.
The best help I can give you is this:
There is an opening '{' bracket at line 111, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 124.
Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.
------- End of Simplerr error -------
Torrents Stats
Torrents Stats