Garry's Mod

Garry's Mod

TGN Advanced Money Printer
 This topic has been pinned, so it's probably important
Lullaby 12 Jul, 2019 @ 1:47pm
Printer code for your server
If you, like me, are a bit too lazy to want to type up the code yourself, you can use mine here.

Add to the "darkrpmodification\lua\darkrp_customthings\entities.lua"

--Printers DarkRP.createEntity("Printer", { ent = "adv_moneyprinter", model = "models/props_c17/consolebox01a.mdl", description = [[It makes cash money, not legal cash moneys.]], price = 7500, max = 4, cmd = "buyprinter", category = "Printers", }) DarkRP.createEntity("Cooler", { ent = "printer_cooler", model = "models/props_lab/reciever01a.mdl", description = [[A cooler for your printer.]], price = 2500, max = 4, cmd = "buycooler", category = "Printers", }) DarkRP.createEntity("Failsafe", { ent = "printer_failsafe", model = "models/props_lab/reciever01a.mdl", description = [[Keeps your printers from overheating.]], price = 325, max = 4, cmd = "buyfailsafe", category = "Printers", }) DarkRP.createEntity("Overclocker", { ent = "printer_overclocker", model = "models/props_lab/reciever01b.mdl", description = [[Makes your printer print faster, but also heat faster.]], price = 3000, max = 4, cmd = "buyoverclocker", category = "Printers", }) DarkRP.createEntity("Small battery", { ent = "printer_smallbattery", model = "models/items/car_battery01.mdl", description = [[A small battery for your printer, restores 125 energy.]], price = 75, max = 4, cmd = "buysmallbattery", category = "Printers", }) DarkRP.createEntity("Medium battery", { ent = "printer_mediumbattery", model = "models/items/car_battery01.mdl", description = [[A medium battery for your printer, restores 250 energy.]], price = 110, max = 4, cmd = "buymediumbattery", category = "Printers", }) DarkRP.createEntity("Large battery", { ent = "printer_largebattery", model = "models/items/car_battery01.mdl", description = [[A large battery for your printer, restores 500 energy.]], price = 230, max = 4, cmd = "buylargebattery", category = "Printers", })

As you may notice they point towards a "Printers" category, to add that to your game add this code to your "darkrpmodification\lua\darkrp_customthings\categories.lua"

DarkRP.createCategory{ name = "Printers", categorises = "entities", startExpanded = true, color = Color(95, 63, 127, 255), canSee = function(ply) return true end, sortOrder = 1, }
< >
Showing 1-5 of 5 comments
Rahim Ali 9 Aug, 2019 @ 8:57am 
Perfect!
Chance 6 Apr, 2020 @ 9:41pm 
All of the code is right but it's still not showing up for me, wtf??
123 18 Feb, 2022 @ 12:11am 
works perfectly, Beautiful copy paste !
zen 13 Mar, 2022 @ 4:35am 
It wont show in my server, and now has got rid of my jobs too
如浮云 ru fuyun 23 Mar, 2023 @ 11:01am 
thanks!
< >
Showing 1-5 of 5 comments
Per page: 1530 50