Garry's Mod Leaks
???? Enchanced Meth Laboratory ????
Submitted by Fliz, 22-12-2017, 02:05 AM, Thread ID: 66186
Thread Closed
enchanced meth laboratory - Leak
imma link code to import into the lua.customthings.entities
Addon:
Entities:
Category:
imma link code to import into the lua.customthings.entities
Addon:
Entities:
Code:
DarkRP.createEntity("Gas Canister", {
ent = "eml_gas",
model = "models/props_c17/canister01a.mdl",
price = 150,
max = 2,
cmd = "buygascanister",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Liquid Iodine", {
ent = "eml_iodine",
model = "models/props_lab/jar01b.mdl",
price = 50,
max = 2,
cmd = "buyiodine",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Jar", {
ent = "eml_jar",
model = "models/props_lab/jar01a.mdl",
price = 250,
max = 1,
cmd = "buyjar",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Muriatic Acid", {
ent = "eml_macid",
model = "models/props_junk/garbage_plasticbottle001a.mdl",
price = 100,
max = 2,
cmd = "buymacid",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Pot", {
ent = "eml_pot",
model = "models/props_c17/metalPot001a.mdl",
price = 150,
max = 1,
cmd = "buypot",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Special Pot", {
ent = "eml_spot",
model = "models/props_c17/metalPot001a.mdl",
price = 150,
max = 1,
cmd = "buyspot",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Stove", {
ent = "eml_stove",
model = "models/props_c17/furnitureStove001a.mdl",
price = 200,
max = 1,
cmd = "buystove",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Liquid Sulfur", {
ent = "ml_sulfur",
model = "models/props_lab/jar01b.mdl",
price = 150,
max = 2,
cmd = "buysulfur",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
DarkRP.createEntity("Water", {
ent = "ml_water",
model = "models/props_junk/garbage_plasticbottle003a.mdl",
price = 100,
max = 2,
cmd = "buywater",
category = "Meth Cooking",
allowed = {TEAM_METHCOOK},
customCheck = function(ply) return
table.HasValue({TEAM_METHCOOK}, ply:Team())
end,
CustomCheckFailMsg = "Your not the correct job!",
})
Category:
Code:
DarkRP.createCategory{
name = "Meth Cooking",
categorises = "entities",
startExpanded = true,
color = Color(14, 184, 62, 255),
canSee = function(ply) return table.HasValue({TEAM_METHCOOK}, ply:Team()) end,
sortOrder = 2
}
Users browsing this thread: 3 Guest(s)