hey!, can you help me?
how to make Button Image?
i mean Make Button on screen with Image like custom GFX.
i try Visual Lua by
EngiN33R, that too hard for me.if you can example how to make like that..
plase show me
thanks.
Scripts
Button Image?
Button Image?
1

EngiN33R, that too hard for me.
Gaios: Personally I think that that is incorrect. @
EngiN33R's VisualLua was made to help lazy (or not) scripters or scripters with less knowledge.
EngiN33R's Visual Lua script) and (maybe?) you can make a Visual Lua script in your own.
GeoB99,@
Gaios,@
_Yank
reqcld but i cant use it...
reqcld for making button and with Image,mode=2.
attack hook to call the
reqcld function (this way you can tell the player has clicked the screen), which runs the
clientdata hook.
clientdata function you have to check where the player has actually clicked, to know wether he clicked the button or not. If he clicked the button, then you call the button's function to do whatever you want it to.
Zeik, can you give me Example code?
Rygna: You won't be able to do it properly! First learn basic lua scripts.
Rygna: Here is an explanation.addhook("attack", "_attack")
function _attack(id)
	reqcld(id, 2);
end
addhook("clientdata", "_cd")
function _cd(id, mode, data1, data2)
	if mode == 2 then
		if data1 == YOUR_DESIRED_X_POSITION then
			if data2 == YOUR_DESIRED_Y_POSITION then
				--Do your script here
			end
		end
	end
end
if data1 > YOUR_POSITION and data1 < YOUR_POSITION2 then 	if data2 > YOUR_POSITION and data2 < YOUR_POSITION2 then 		--Do your script here 	end end
@
THEMUD, Hey!, thanks for explanation!.
@
Gaios, ok bro!, i will learn basic lua
thanks.
1
