- Initiateur de la discussion
brimox
Geek
- Messages
- 6
- Score réaction
- 0
- Points
- 80
Bonjour, je cherche une solution pour que les vip aient accès à certain printeur, voici le code
`local function addPrintersToTheServer()
print("Adding printers...")
DarkRP.createEntity("Printer Bleu", {
ent = "boost_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 1000,
max = 1,
cmd = "buyblueprinter"
})
DarkRP.createEntity("Printer Rouge", {
ent = "boost_printer_red",
model = "models/props_c17/consolebox01a.mdl",
price = 4000,
max = 1,
cmd = "buyredprinter"
})
DarkRP.createEntity("Printer Vert", {
ent = "boost_printer_green",
model = "models/props_c17/consolebox01a.mdl",
price = 7000,
max = 1,
cmd = "buygreenprinter"
})
DarkRP.createEntity("Printer Jaune", {
ent = "boost_printer_yellow",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 1,
cmd = "buyyellowprinter",
AllowedUserGroups = { "v.i.p", "v.i.p+", "superadmin" }
})
DarkRP.createEntity("Printer Violet", {
ent = "boost_printer_purple",
model = "models/props_c17/consolebox01a.mdl",
price = 12000,
max = 1,
cmd = "buypurpleprinter", -- If you want to make it VIP only check this out http://wiki.darkrp.com/index.php/Donator_Job_configuration
AllowedUserGroups = { "v.i.p", "v.i.p+", "superadmin" }
})
DarkRP.createEntity("Cellule de refroidissement", {
ent = "boost_cooling",
model = "models/Items/battery.mdl",
price = 100,
max = 1,
cmd = "buycoolingcell"
})
DarkRP.createEntity("Printer Batterie", {
ent = "boost_battery",
model = "models/Items/car_battery01.mdl",
price = 200,
max = 1,
cmd = "buybattery"
})
end
hook.Add("loadCustomDarkRPItems", "tomascustoms_printers_load", addPrintersToTheServer)`
`local function addPrintersToTheServer()
print("Adding printers...")
DarkRP.createEntity("Printer Bleu", {
ent = "boost_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 1000,
max = 1,
cmd = "buyblueprinter"
})
DarkRP.createEntity("Printer Rouge", {
ent = "boost_printer_red",
model = "models/props_c17/consolebox01a.mdl",
price = 4000,
max = 1,
cmd = "buyredprinter"
})
DarkRP.createEntity("Printer Vert", {
ent = "boost_printer_green",
model = "models/props_c17/consolebox01a.mdl",
price = 7000,
max = 1,
cmd = "buygreenprinter"
})
DarkRP.createEntity("Printer Jaune", {
ent = "boost_printer_yellow",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 1,
cmd = "buyyellowprinter",
AllowedUserGroups = { "v.i.p", "v.i.p+", "superadmin" }
})
DarkRP.createEntity("Printer Violet", {
ent = "boost_printer_purple",
model = "models/props_c17/consolebox01a.mdl",
price = 12000,
max = 1,
cmd = "buypurpleprinter", -- If you want to make it VIP only check this out http://wiki.darkrp.com/index.php/Donator_Job_configuration
AllowedUserGroups = { "v.i.p", "v.i.p+", "superadmin" }
})
DarkRP.createEntity("Cellule de refroidissement", {
ent = "boost_cooling",
model = "models/Items/battery.mdl",
price = 100,
max = 1,
cmd = "buycoolingcell"
})
DarkRP.createEntity("Printer Batterie", {
ent = "boost_battery",
model = "models/Items/car_battery01.mdl",
price = 200,
max = 1,
cmd = "buybattery"
})
end
hook.Add("loadCustomDarkRPItems", "tomascustoms_printers_load", addPrintersToTheServer)`