TEAM_TEST = DarkRP.createJob("test", {
color = Color(0, 127, 14, 255),
model = {"models/player/Group01/female_01.mdl"},
description = [[]],
weapons = {""},
command = "test",
max = 1,
salary = 0,
vote = false,
hasLicense = false,
category = "test",
PlayerLoadout = function(ply) ply:SetArmor (100) end,
PlayerLoadout = function(ply) ply:SetHealth (150) end,
})
или
TEAM_TEST = DarkRP.createJob("test", {
color = Color(0, 127, 14, 255),
model = {"models/player/Group01/female_01.mdl"},
description = [[]],
weapons = {""},
command = "test",
max = 1,
salary = 0,
vote = false,
hasLicense = false,
category = "test",
PlayerSpawn = function(ply)
ply:SetHealth(120)
ply:SetMaxHealth(120)
ply:SetArmor(130)
ply:SetMaxArmor(130)
end,
})
При заходе всё равно 100 хп и 0 брони у профессий
color = Color(0, 127, 14, 255),
model = {"models/player/Group01/female_01.mdl"},
description = [[]],
weapons = {""},
command = "test",
max = 1,
salary = 0,
vote = false,
hasLicense = false,
category = "test",
PlayerLoadout = function(ply) ply:SetArmor (100) end,
PlayerLoadout = function(ply) ply:SetHealth (150) end,
})
или
TEAM_TEST = DarkRP.createJob("test", {
color = Color(0, 127, 14, 255),
model = {"models/player/Group01/female_01.mdl"},
description = [[]],
weapons = {""},
command = "test",
max = 1,
salary = 0,
vote = false,
hasLicense = false,
category = "test",
PlayerSpawn = function(ply)
ply:SetHealth(120)
ply:SetMaxHealth(120)
ply:SetArmor(130)
ply:SetMaxArmor(130)
end,
})
При заходе всё равно 100 хп и 0 брони у профессий
Последнее редактирование: