TEAM_BITMINER = DarkRP.createJob("Битмайнер", {
color = Color(205, 45, 91),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Битмайнер]],
weapons = {},
command = "bitminer",
max = 2,
Спойлер: entity -- Майнинг DarkRP.createEntity("Bitminer S1", { ent = "bm2_bitminer_1", model = "models/bitminers2/bitminer_1.mdl", price = 2000, max = 1, cmd = "buybitminers1", category = "Майнинг", allowed = {TEAM_BITMINER} }) DarkRP.createEntity("Bitminer S2", { ent = "bm2_bitminer_2", model = "models/bitminers2/bitminer_3.mdl", price = 10000, max = 1, cmd = "buybitminers2", category = "Майнинг", allowed = {TEAM_BITMINER} }) DarkRP.createEntity("Bitminer S3", { ent = "bm2_bitminer_server", model = "models/bitminers2/bitminer_2.mdl", price = 25000, max = 1, cmd = "buybitminerserver", customCheck = function(ply) return ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "moderator" or ply:IsAdmin() end, CustomCheckFailMsg = "Прикупите привилегию VIP или выше!", category = "VIP", allowed = {TEAM_BITMINER} }) DarkRP.createEntity("BitRack", { ent = "bm2_bitminer_rack", model = "models/bitminers2/bitminer_rack.mdl", price = 50000, max = 1, cmd = "buybitminerrack", customCheck = function(ply) return ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "moderator" or ply:IsAdmin() end, CustomCheckFailMsg = "Прикупите привилегию VIP или выше!", category = "VIP", allowed = {TEAM_BITMINER} }) DarkRP.createEntity("Удлинитель", { ent = "bm2_extention_lead", model = "models/bitminers2/bitminer_plug_3.mdl", price = 500, max = 4, cmd = "buybitminerextension", category = "Майнинг", allowed = {TEAM_BITMINER} }) DarkRP.createEntity("Кабель питания", { ent = "bm2_power_lead", model = "models/bitminers2/bitminer_plug_2.mdl", price = 250, max = 4, cmd = "buybitminerpowerlead", category = "Майнинг", allowed = {TEAM_BITMINER} }) DarkRP.createEntity("Генератор", { ent = "bm2_generator", model = "models/bitminers2/generator.mdl", price = 5000, max = 2, cmd = "buybitminergenerator", category = "Майнинг", allowed = {TEAM_BITMINER} }) DarkRP.createEntity("Топливо", { ent = "bm2_fuel", model = "models/props_junk/gascan001a.mdl", price = 1000, max = 4, cmd = "buybitminerfuel", category = "Майнинг", allowed = {TEAM_BITMINER} })