Garry's Mod

Garry's Mod

View Stats:
elias Oct 30, 2019 @ 11:30am
DarkRP Setting health to jobs problem
I am having a problem where when I put in a code to give a job a specified amount of health when they spawn, but it doesn't seem to be working, anyone with knowledge of this and is willing to help me out?

Code for one job:

TEAM_501STTRP = DarkRP.createJob("501st Trooper", {
color = Color(17, 17, 153, 255),
model = {"models/reizer_cgi_p2/501_trp/501_trp.mdl"},
description = [[501st Trooper]],
weapons = {"tfa_swch_dc15s", "tfa_swch_dc17", "salute"},
command = "501sttrp",
max = 10,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "501st Troopers",
PlayerSpawn = function(ply)
ply:SetMaxHealth(500)
ply:SetHealth(500)
end,
CanPlayerSuicide = function(ply) return false end,
})
< >
Showing 1-1 of 1 comments
Wesch Nov 26, 2019 @ 9:17am 
PlayerSpawn = function(ply), }
ply:SetMaxHealth(500)
ply:SetHealth(500)
end,
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Oct 30, 2019 @ 11:30am
Posts: 1