• money printer text please help.
    3 replies, posted
hello, so I have a code but its not working for my moneyprinter, I want to see how much money my printer contains (self.dtmoney) or soemthing it stores money over time so can anyone please help me with this code. function DrawInfoPrinter() local tr = LocalPlayer():GetEyeTrace() if ValidEntity(tr.Entity) and tr.Entity:GetPos():Distance(LocalPlayer():GetPos()) < 400 then if tr.Entity:GetClass() == "money_printer" then local ent = tr.Entity local pos = ent:GetPos() pos.z = pos.z + 8 pos = pos:ToScreen() local owner = "self.dt.owning_ent" if ValidEntity(ent:GetNWEntity("owning_ent")) then owner = ent:GetNWEntity("owning_ent"):Nick() end local text = owner .. "'Money: "..tr.Entity:GetNWInt("self.dt.money") draw.DrawText(text, "TargetID", pos.x + 1, pos.y + 1, Color(0, 0, 0, 200), 1) draw.DrawText(text, "TargetID", pos.x, pos.y, Color(255, 255, 255, 200), 1) end end end hook.Add( "HUDPaint", "DrawInfoPrinter", DrawInfoPrinter )
I made this script for someone ages ago. I'll post link when i get home.
chralex helped you with this -.-
not chralex man, I found it on garrysmod.org and I wanted the text on the cooler to be the same on printers, but charlex designed some of my printers. stop raiting me as dumb nexusowner D: its not nice! I am just dumb in lua ^^.
Sorry, you need to Log In to post a reply to this thread.