Garry's Mod

Garry's Mod

View Stats:
KazuuTTV Sep 28, 2018 @ 8:02am
Job Lua Error For DarkRP Jobs
This is my job
TEAM_173 = DarkRP.createJob("SCP-173", {
color = Color(255, 0, 0, 255),
model = {"models/jqueary/scp/unity/scp173/scp173unity.mdl"},
description = [[.]],
weapons = {"weapon_scp173"},
command = "173",
max = 1,
salary = 450,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "SCP-173"
PlayerSpawn = function(ply)
ply:SetMaxHealth(1000)
ply:SetHealth(1000)
ply:SetArmor(100)
end
})

and error loks like that
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 308.
The best help I can give you is this:
There is an opening '{' bracket at line 295, but this bracket is never closed or not closed in time. It was expected to be closed before the 'PlayerSpawn' at line 308.
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: ({)}.
< >
Showing 1-2 of 2 comments
Braum's Nov 22, 2018 @ 2:07pm 
I have the same problem. :C I couldn't find an answer.
Braum's Nov 22, 2018 @ 2:07pm 
Someone google me someting.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Sep 28, 2018 @ 8:02am
Posts: 2