I like the wad of money that has the text on top in many RP mods you find out there, unfortunately in some releases it’s not there.
I’ve been looking to find it on garrysmod.org, fruitlessly. So I figured I should try to make it myself.
I’ve basically just taken the money printer pack, and went to copy the textbox from it onto the spawned money entity.
Everything worked, save for one thing: The value of the money wouldn’t be sent, or rather, I’m not sure how to fetch it out.
function ENT:Draw() self.Entity:DrawModel() local Pos = self:GetPos() local Ang = self:GetAngles() txt2 = "$" ..self:GetNWInt("Amount") surface.SetFont("HUDNumber5") local TextWidth2 = surface.GetTextSize(txt2) Ang:RotateAroundAxis(Ang:Up(), 0) cam.Start3D2D(Pos + Ang:Up() * 1.5, Ang, 0.07) draw.WordBox(2, -TextWidth2*0.5, -10, txt2, "HUDNumber5", Color(30, 170, 00, 150), Color(255,255,255,255)) cam.End3D2D() end
I know Amount is the value used for the entity to say the money that it’s in it. But on the textbox I only get a 0. And if I try not to use the get networked int part, it says the value is nil, so I’m really not sure what the problem is.