Forum

> > CS2D > Scripts > Image as hud, and using it.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Image as hud, and using it.

3 replies
To the start Previous 1 Next To the start

old Image as hud, and using it.

strelok_953
User Off Offline

Quote
Hi everyone .
Maybe someone know how to make image, that will be "pressable" .-.
If i did press serveraction, then image will happened as hud:
freeimage(imag)
imag = ...blabla
IMG:https://i7.pixs.ru/storage/7/9/6/11png_5196527_13517796.png

If i did press "X" that menu will just removed from.
IMG:https://i.pixs.ru/storage/8/1/4/12png_6557031_13517814.png

freeimage(imag)

I guess it can be easy?
example as
buttons = {
[1]={"gfx/kela1/menuexample.png",64,64,2"};
[2]={"gfx/kela1/menuclose.png",500,64,2"}
freeimage(1,2);
     }
Thanks you :d

old Re: Image as hud, and using it.

X-Files
User Off Offline

Quote
i did it two years ago but i lost the lua and i forget how to do but , as i remember i used attack hook, if clientdata on proper x,y of screen then removeimage
something like this

visual lua is too complex i think u can do from my way if you know coding
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview