• [Help!] DarkRP : Health, Armor
    3 replies, posted
Hello, I have an error when I tried to prescribe Life's work and armor, Can you tell me what is my mistake? TEAM_ASSASIN = DarkRP.createJob("CP.C17.OTA.ASSASIN", { color = Color(255, 140, 0, 255), model = {"models/player/hl2survivor/combine_sniper_female.mdl"}, description = [[description]], weapons = {"weapon_357", "weapon_ar2", "door_ram", "weapon_bp_sniper", "blink", "weaponchecker"}, command = "qwertyuiopqwertyuiopmnssaqa", max = 2, salary = 250, admin = 0, vote = false, hasLicense = true, category = "Civil Protection", type = "police", requireUnlock = TEAM_DVL, unlockCost = 350000 PlayerLoadout = function(ply) ply:SetHealth(500) ply:SetArmor(500) end, }) Here is the error itself [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:435: '}' expected (to close '{' at line 415) near 'PlayerLoadout' 1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0
You are missing comma in the end of [B]unlockCost = 350000[/B]
in the future use [URL="https://fptje.github.io/glualint-web/"]this[/URL]
[QUOTE=iJohnny;52054064]You are missing comma in the end of [B]unlockCost = 350000[/B][/QUOTE] Thanks)
Sorry, you need to Log In to post a reply to this thread.