DarkRP | Custom Money Printer Help

Hello!

I’ve decided I want more money printers on my server and with that I went ahead and created a new entity in “darkrp/entities/entities”. I’ve called the printer “money_printer_test”. I then went to the “addentities.lua” file and added


AddEntity("Test Money Printer", {
	ent = "money_printer_test",
	model = "models/props_c17/consolebox01a.mdl",
	price = 10,
	max = 3,
	cmd = "/buytestmoneyprinter"
})

I then went into the game and clicked on the new printer entity. To my dismay, it didn’t work! It just said “/buytestmoneyprinter” in the chat and took the money off of me.

I’ve searched around a good but and can only find tutorials and help for DarkRP before GMod 13, and I think that’s the problem. Would I be correct in saying the way printers are created has changed? If not, then I’m just retarded.

Thanks in advance,
Jake.

1.You should edit printers, not make them
2. Restart server then the enittie can load.
3. Look if the command is not the same as any ohter printer.
4. iF those doesnt work, you failed.

  1. Why would I edit the printer if there is only one by default? I want to add more.
  2. I did restart the server, but that made no difference.
  3. I posted my code above, it is not the same as any other command.
  4. That’s nice.

Im pretty sure he means you shoudl just copypaste the old printer (Duplicate the code)

It’s the exact same code except for the printer name and the entity. What’d be the point of using the same entity? The amount being printed wouldn’t change then…

Get some of the steam workshop. There are enough there. DarkRP gemstone money printers are very populair these days.

I’ve tried those too. I just don’t like 'em. I’d rather do it myself, but I’m confuddled why it doesn’t work.

You want them to print 20 every second or like 250 every minute?

500 every 4 - 8 minutes.

Try the lua section maybe?

No tutorial for you, I want to keep it as my own :3

I had this problem and have just fixed it, here’s what I did:

In the path: garrysmod\gamemodes\DarkRP\entities\entities

I named a folder a new folder ‘iron_money_printer’ and copied the contents from the ‘money_printer’ folder already in there.

In the cl_init files, change all instances of ‘Money printer’ to ‘Iron money printer’. There should be 2 instances.

In the init.lua, change the GAMEMODE.Config.mprintamount second amount to the amount you want the iron money printer to print.

And change the “Your money printer has exploded!” and “Your money printer is overheating!” if you like relating to iron.

In the shared.lua, make sure the ENT.PrintName = “Iron Money Printer”

And finally, goto garrysmod\gamemodes\DarkRP\gamemode and open the addentities.lua

scroll to the bottom under – ADD CUSTOM SHIPMENTS HERE(next line):

and add:

AddEntity(“Iron Money printer”, {
ent = “iron_money_printer”,
model = “models/props_c17/consolebox01a.mdl”,
price = 2000,
max = 2,
cmd = “/buyironmoneyprinter”
})

And you should be good to go! Save the files and restart your server!

Now you can copy the same technique and change all the instances of “iron” to a name of your choice. ^^

I am very new to making a RP server and have just started setting up one.

EDIT:

About an hour after posting, here is my progress:

http://cloud.steampowered.com/ugc/920125665198730484/B22E7F7CA4BD1F5573ACD6CBF98A3F6A22263823/

^^

Also, in DarkRP > gamemode > config.lua

look for this like:

– mprintamount - Value of the money printed by the money printer.
GM.Config.mprintamount= 250

Change 250 to 0. :slight_smile: