• Custom job Spawn with health help?
    2 replies, posted
Hello, Basicly the title says it all, I Was wondering if you guys could maybe send me the code to make a class spawn with health? Im also new to coding so i apolagize if this is a very easy answer, like i said im a noob at coding so yeah. Thanks. Heres the code [CODE]TEAM_JUGGARNAUT = DarkRP.createJob("Juggarnaut", { color = Color(255, 255, 255, 255), model = "models/player/gman_high.mdl", description = [[Zimma and A$$ASIN'S Custom Class.]], weapons = {"weapon_ak472"}, command = "juggarnaut", max = 10, salary = 100, admin = 0, vote = false PlayerSpawn = function(ply) ply:SetArmor(100) end,, }) [/CODE]
remove one ,
As Netheous said, but you're also missing a , on vote = false... So, remove one and move one up, or just move one up ( last line can have a comma 99% of the time ) [code]TEAM_JUGGARNAUT = DarkRP.createJob("Juggarnaut", { color = Color(255, 255, 255, 255), model = "models/player/gman_high.mdl", description = [[Zimma and A$ASIN'S Custom Class.]], weapons = {"weapon_ak472"}, command = "juggarnaut", max = 10, salary = 100, admin = 0, vote = false, PlayerSpawn = function(ply) ply:SetArmor(100) end })[/code] For the future: Hey, welcome to FacePunch. This forum is for devs that need help working on things. Here are some resources to help you get started: ---------------------------------------------- General Learning Lua Help Thread ( Contains links to helpful topics, and websites ): [url]http://facepunch.com/showthread.php?t=1337945[/url] Problems that don't need their own thread ( All simple questions / quickies should go here, but please do not post a question here AND make a new topic.. ): [url]http://facepunch.com/showthread.php?t=1411111[/url] OLD Problems and Solutions thread ( contains a massive amount of useful data ): [url]http://facepunch.com/showthread.php?t=1348923[/url] Garry's Mod Wiki: [url]http://wiki.garrysmod.com/page/Main_Page[/url] Old Garry's Mod Wiki ( Contains a lot of useful information; some content may not work without modification within GM13 ): [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html[/url] DarkRP Help Thread ( [b]ALL[/b] DarkRP Questions go here ): [url]http://facepunch.com/showthread.php?t=1249475[/url] DarkRP Wiki ( Most questions can be answered here ): [url]http://wiki.darkrp.com/index.php/Main_Page[/url] Creating Jobs in DarkRP: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Creating Shipments in DarkRP: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields[/url]
Sorry, you need to Log In to post a reply to this thread.