Right now im trying to add a golden money printer to the game but it wont show up in the gui.
Im only doing this to try to understand how it works so please dont post hateful remarks.
Im not getting any errors in the console.
Any help would be great.
Wrong section.
Post it in Lua > Questions.
However, I will try to help you regardless. What do you mean it wont show up in the gui?
Do you mean the F4 menu?
yeah the f4 menu.
i added the 3 .lua files that were pretty much copys from the wiki and i put them in gamemodes/DarkRP/entities/entities/test_money_printer
nothing shows up
You say "pretty much copies". Does this mean that you edited them? Do you know Lua? Is there any chance that you broke them?
[editline]13th December 2010[/editline]
You could copy the files from the normal money printer but use [b][url=http://wiki.garrysmod.com/?title=Entity.SetColor]Entity.SetColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] to make it gold.
The only think i changed were values.
local amount = 1500
if amount == 0 then
amount = 1500
The 2 values were at 1000.
It didnt help to change them back.
And the name in the shared.lua was changed only because i read somewhere that it needed to be different from the original money printer.
Also im really new to .lua so i was trying to use this new money printer to get my foot in the door with just messing with the values but that kinda got screwed up when the damn thing didnt even show up in the f4 menu -_-
Editing numerical values won't get you any experience at all. There are ways to start small and easy with Lua but this isn't one.
Everyone has a learning curve and this is where I start.
Right now im taking a copy from the original money printer and im going to change the name and the HUDNumber to 6 and ill let you know if it works.
When you open a .lua file its in a single line format.
Is there a way to fix it to be easier to work with or do you just have to deal with it like that?
Sorry, you need to Log In to post a reply to this thread.