Forum

> > CS2D > Scripts > How to remove hud image?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to remove hud image?

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How to remove hud image?

Hidder
BANNED Off Offline

Zitieren
hello guys, i want to ask about some thing
how 2 remove hud img ?
example:
HUDImage = image('gfx/! !!gfx/2.png',20,175,3)

i tried to replace it with another image but didn't work :S

alt Re: How to remove hud image?

Masea
Super User Off Offline

Zitieren
http://cs2d.com/help.php - from here you can find all commands, hooks and functions about CS2D. And what you're trying to find is cs2d lua cmd freeimage. Just do something like
freeimage(HUDImage)
and boom you removed it. Then you can create an another image which would use this name once again.

alt Re: How to remove hud image?

Cloudy71
BANNED Off Offline

Zitieren
You should also clear the variable where you stored your image. As the documentation says, freeimage removes only image from memory, but the ID will be still stored in your variable.
1
HUDImage = nil

Good luck with your script.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht