Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*---------------------------------------------------------------------------
- DarkRP custom entities
- ---------------------------------------------------------------------------
- This file contains your custom entities.
- This file should also contain entities from DarkRP that you edited.
- Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
- Once you've done that, copy and paste the entity to this file and edit it.
- The default entities can be found here:
- https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
- Add entities under the following line:
- ---------------------------------------------------------------------------*/
- AddEntity("Piano", {
- ent = "gmt_instrument_piano",
- model = "models/fishy/furniture/piano.mdl",
- price = 1,
- max = 1,
- cmd = "buypiano",
- allowed = {TEAM_PIANIST}
- })
- DarkRP.createEntity("Plant Pot", {
- ent = "plant_pot",
- model = "models/drugplants/plantpot.mdl",
- price = 150,
- max = 3,
- cmd = "buyplantpot",
- allowed = {TEAM_DRUG}
- })
- DarkRP.createEntity("Weed Seed", {
- ent = "weed_seed",
- model = "models/katharsmodels/contraband/zak_wiet/zak_seed.mdl",
- price = 300,
- max = 3,
- cmd = "buyweedseed",
- allowed = {TEAM_DRUG}
- })
- if Prc.PrinterEnable then
- AddEntity(Prc.PrinterName, {
- ent = "money_printer0",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice,
- max = Prc.PrinterMax,
- cmd = "buymoneyprinter0"
- })
- end
- if Prc.PrinterEnable2 then
- AddEntity(Prc.PrinterName2, {
- ent = "money_printer2",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice2,
- max = Prc.PrinterMax2,
- cmd = "buymoneyprinter2"
- })
- end
- if Prc.PrinterEnable3 then
- AddEntity(Prc.PrinterName3, {
- ent = "money_printer3",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice3,
- max = Prc.PrinterMax3,
- cmd = "buymoneyprinter3"
- })
- end
- if Prc.PrinterEnable4 then
- AddEntity(Prc.PrinterName4, {
- ent = "money_printer4",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice4,
- max = Prc.PrinterMax4,
- cmd = "buymoneyprinter4"
- })
- end
- if Prc.PrinterEnable5 then
- AddEntity(Prc.PrinterName5, {
- ent = "money_printer5",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice5,
- max = Prc.PrinterMax5,
- cmd = "buymoneyprinter5"
- })
- end
- if Prc.PrinterEnable6 then
- AddEntity(Prc.PrinterName6, {
- ent = "money_printer6",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice6,
- max = Prc.PrinterMax6,
- cmd = "buymoneyprinter6"
- })
- end
- if Prc.VIPPrinters and not Prc.RocketMania then
- if Prc.PrinterEnable7 then
- AddEntity(Prc.PrinterName7, {
- ent = "money_printer7",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice7,
- max = Prc.PrinterMax7,
- cmd = "buymoneyprinter7",
- customCheck = function(ply) return ply:isVIPMember() end,
- CustomCheckFailMsg = "This printer is VIP only!"
- })
- end
- if Prc.PrinterEnable8 then
- AddEntity(Prc.PrinterName8, {
- ent = "money_printer8",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice8,
- max = Prc.PrinterMax8,
- cmd = "buymoneyprinter8",
- customCheck = function(ply) return ply:isVIPMember() end,
- CustomCheckFailMsg = "This printer is VIP only!"
- })
- end
- if Prc.PrinterEnable9 then
- AddEntity(Prc.PrinterName9, {
- ent = "money_printer9",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice9,
- max = Prc.PrinterMax9,
- cmd = "buymoneyprinter9",
- customCheck = function(ply) return ply:isVIPMember() end,
- CustomCheckFailMsg = "This printer is VIP only!"
- })
- end
- if Prc.PrinterEnable10 then
- AddEntity(Prc.PrinterName10, {
- ent = "money_printer10",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice10,
- max = Prc.PrinterMax10,
- cmd = "buymoneyprinter10",
- customCheck = function(ply) return ply:isVIPMember() end,
- CustomCheckFailMsg = "This printer is VIP only!"
- })
- end
- elseif Prc.VIPPrinters and Prc.RocketMania then
- if Prc.PrinterEnable7 then
- AddEntity(Prc.PrinterName7, {
- ent = "money_printer7",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice7,
- max = Prc.PrinterMax7,
- cmd = "buymoneyprinter7",
- VIPOnly = true
- })
- end
- if Prc.PrinterEnable8 then
- AddEntity(Prc.PrinterName8, {
- ent = "money_printer8",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice8,
- max = Prc.PrinterMax8,
- cmd = "buymoneyprinter8",
- VIPOnly = true
- })
- end
- if Prc.PrinterEnable10 then
- AddEntity(Prc.PrinterName9, {
- ent = "money_printer9",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice9,
- max = Prc.PrinterMax9,
- cmd = "buymoneyprinter9",
- VIPOnly = true
- })
- end
- if Prc.PrinterEnable10 then
- AddEntity(Prc.PrinterName10, {
- ent = "money_printer10",
- model = "models/props_c17/consolebox01a.mdl",
- price = Prc.PrinterPrice10,
- max = Prc.PrinterMax10,
- cmd = "buymoneyprinter10",
- VIPOnly = true
- })
- end
- end
- if Prc.Configurations then
- AddEntity("Printer Cooler", {
- ent = "printer_cooler",
- model = "models/props_lab/reciever01a.mdl",
- price = 1250,
- max = 10,
- cmd = "buycooler"
- })
- AddEntity("Printer Speed", {
- ent = "printer_timer",
- model = "models/props_lab/reciever01a.mdl",
- price = 1250,
- max = 10,
- cmd = "buytimer"
- })
- AddEntity("Printer Amount", {
- ent = "printer_amount",
- model = "models/props_lab/reciever01a.mdl",
- price = 1250,
- max = 10,
- cmd = "buyamount"
- })
- AddEntity("Printer Silencer", {
- ent = "printer_silencer",
- model = "models/props_lab/reciever01a.mdl",
- price = 1250,
- max = 10,
- cmd = "buysilencer"
- })
- AddEntity("Printer Armor", {
- ent = "printer_armor",
- model = "models/props_lab/reciever01a.mdl",
- price = 1250,
- max = 10,
- cmd = "buyarmor"
- })
- if Prc.StealingSystem then
- AddEntity("Printer Security", {
- ent = "printer_stealing",
- model = "models/props_lab/reciever01a.mdl",
- price = 1250,
- max = 10,
- cmd = "buysecurity"
- })
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement