Вопрос Проблема с профессиями

  • 25
  • 2
  • 2
Контакты для связи отсутствуют.
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 брони у профессий
 
Последнее редактирование:
Решение
попробуй, только модель смени:
Lua:
TEAM_NONRP = DarkRP.createJob("Администратор", {
  color = Color(115, 255, 215, 255),
  model = {
    "models/scora/scora_adm_pm.mdl"
  },
-- model = {"models/player/pizda/LunaNude.mdl"},
  description = [[Проффесия для разборок и наблюдением за сервером,
 в РП процессы вмешиваться СТРОГО ЗАПРЕЩЕННО!]],
  weapons = {"keys", "weapon_physgun", "door_ram", "weapon_physcannon", "gmod_tool", "dsr_handcuffs", "gmod_camera"},
  command = "nonrp",
  max = 0,
  salary = 50,
  admin = 0,
  sortOrder = 222,
  vote = false,
  hasLicense = false,
  category = "Администрация",
  PlayerSpawn = function(ply)
    if SERVER then
      ply:SetHealth(8888)
      ply:SetMaxHealth(8888)
      ply:GodEnable()
    end
  end...
  • Scora
  • чапаю на кавказ
  • 339
  • 71
  • 82
попробуй, только модель смени:
Lua:
TEAM_NONRP = DarkRP.createJob("Администратор", {
  color = Color(115, 255, 215, 255),
  model = {
    "models/scora/scora_adm_pm.mdl"
  },
-- model = {"models/player/pizda/LunaNude.mdl"},
  description = [[Проффесия для разборок и наблюдением за сервером,
 в РП процессы вмешиваться СТРОГО ЗАПРЕЩЕННО!]],
  weapons = {"keys", "weapon_physgun", "door_ram", "weapon_physcannon", "gmod_tool", "dsr_handcuffs", "gmod_camera"},
  command = "nonrp",
  max = 0,
  salary = 50,
  admin = 0,
  sortOrder = 222,
  vote = false,
  hasLicense = false,
  category = "Администрация",
  PlayerSpawn = function(ply)
    if SERVER then
      ply:SetHealth(8888)
      ply:SetMaxHealth(8888)
      ply:GodEnable()
    end
  end,
OnPlayerChangedTeam = function(ply, oldTeam, newTeam) if oldTeam == TEAM_NONRP then ply:sam_uncloak() ply:GodDisable() ply:SetMoveType(MOVETYPE_WALK) end end,
customCheck = function(ply) return ply:isAdmin() end,
CustomCheckFailMsg = "Ты не Админ!",
})
 
Сверху Снизу