English How to remove hud image?

3 replies
Goto Page
To the start Previous 1 Next To the start
22.04.17 11:00:03 am
Up
Hidder
BANNED
Offline Off
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
22.04.17 11:16:56 am
Up
Masea
Super User
Offline Off
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.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Mod (28)
03.05.17 06:09:22 pm
Up
Cloudy71
BANNED
Offline Off
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.
Code:
1
HUDImage = nil


Good luck with your script.
To the start Previous 1 Next To the start