Forum

> > CS2D > Scripts > How to remove hud image?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to remove hud image?

3 replies
To the start Previous 1 Next To the start

old How to remove hud image?

Hidder
BANNED Off Offline

Quote
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

old Re: How to remove hud image?

Masea
Super User Off Offline

Quote
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.

old Re: How to remove hud image?

Cloudy71
BANNED Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview