Artisz Posted September 11, 2016 Share Posted September 11, 2016 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
Walid Posted September 11, 2016 Share Posted September 11, 2016 (edited) As i undrestand you want to change the picture when the player click an item, so All what you need is guiStaticImageLoadImage. Edited September 11, 2016 by Walid Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now