Forum

> > CS2D > Scripts > Image as hud, and using it.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Image as hud, and using it.

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Image as hud, and using it.

strelok_953
User Off Offline

Zitieren
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

alt Re: Image as hud, and using it.

X-Files
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht