Jump to content

Show gui just for hover element


Artisz

Recommended Posts

Hi!

 

How can I do this, that from the inventory I hover an item to a player, then show that player the image?

 

local tipus = getElementType ( hoverElement )
								if(tipus == "player") then
									if(mozgatTargyInfo[1] == 60) then
										local jelveny = guiCreateStaticImage(50, 50, 295, 388, "kepek/jelveny.png", false)
										guiSetEnable(jelveny, false)
										if(hoverElement == getRootElement()) then
											guiSetVisible(jelveny, true)
										else
											guiSetVisible(jelveny, false)
										end
									else
										...
									end

 

I try to do like this, but it's not working, the picture visible just for me, how try to show the image.

 

Sorry for my English!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...