Forum

> > CS2D > Scripts > Q: How To Add custom HUD?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Q: How To Add custom HUD?

6 replies
To the start Previous 1 Next To the start

moved Q: How To Add custom HUD?

MrMarx
User Off Offline

Quote
flame Hi, everyone. The thing i wanted to ask is, how can i change my gui trought lua files ( mods ), an example one of the tf2d mod has got everything custom, gui, players. I want it to make so others see, also some rp mods are using custom guis too, should i look an example from them, how can i add custom gui, please answer... Thanks. flame
edited 1×, last 05.04.11 07:34:19 pm

Admin/mod comment

moved to scripts cause that's what you are talking about

old Re: Q: How To Add custom HUD?

ohaz
User Off Offline

Quote
You can't change the gui by using Lua (only the server can). The GUI itself can only be changed by changing the source code, which is only possible with very old versions of cs2d

old Re: Q: How To Add custom HUD?

J4x
User Off Offline

Quote
But u can make your own menu with lua.
PS: since when u r not admin TKD?
edited 1×, last 14.03.11 09:13:32 pm

old Re: Q: How To Add custom HUD?

MrMarx
User Off Offline

Quote
TheKilledDeath has written
You can't change the gui by using Lua (only the server can). The GUI itself can only be changed by changing the source code, which is only possible with very old versions of cs2d


Yeah but i'm talking about if I CREATE a server, with a lua, that shows your xp, money and hp with a custom skin, like in mod called RP. But i don't have it so i don't know :(, oh yeah, like on guy said - "Above post is true.
I've seen it possible in a Tibia-like server." - there was a reskin for the radar that everyone could see ( serverside skin ), so don't tell me that it's imposible, i'm not blind, or retard :(, i JUST WANT to know how to add custom serverside skins and it is posible

old Re: Q: How To Add custom HUD?

DannyDeth
User Off Offline

Quote
That isn't a GUI, lol. It's called a HUD ( heads up display ).
You can do this with Lua, see info.txt in sys/lua and scroll to the bottom, there is something down there to display images and text on your hud.

EDIT: Uuh, TKD, I thought u were a mod...

old Re: Q: How To Add custom HUD?

KimKat
GAME BANNED Off Offline

Quote
@Havk995: The custom radar graphic image would get in the way of the actual radar though. If DC could create a option to disable the default radar graphic perhaps this would work better. Of course it'd be DC's choice to decide whether or not this will be featured or not. But it would be a useful idea to disable elements on clients through lua (perhaps only temporary change). Just a thought.

Perhaps a lua/server command like this.
1
lua sv_radar [1/0]
1 = on, 0 = off. You know the drill.
That would be how to disable that element on the HUD for all players in order to use a lua radar graphic image, sort of.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview