Catalyst Gaming
General => Support & Help => Topic started by: Inv??Gir on January 23, 2012, 12:49:50 PM
-
i want to make my own hud and i never knew how to make one with textures untill now
i've been downloading a few hud's from gmod.org and tested them and checked the lua files + textures files and i saw that the original base hud have a small hp bar and the second texutre size is bigger then the base
when i checked the lua files i saw you cant set the texture size only the position
so my question is how its works like this and how to set my own hp bar to be exactly at the same size of the base one
i allready made the hud but i dont want to to the same work twice so plesae help me:(
and thanks for all the helpers ;D
-
Its easy Its just one small code, Why a HUD? they are verry newbie lua.
-
surface.DrawTexturedRect( Number x, Number y, Number width, Number height )
So the first argument is the X position, the second argument is the Y position, the third argument is the Width of the picture and the fourth is the Height of the picture. It's pretty simple.
Also you might want to check out http://wiki.garrysmod.com/?title=Main_Page (http://wiki.garrysmod.com/?title=Main_Page) if you haven't already. Use the search function to search for functions you need help on.
-
oh thanks:)
and jamiecross im doin it for my self not to advertise it
-
Alright, problem solved. Locking the topic.