iPollo Posted March 3, 2020 Share Posted March 3, 2020 Hello, a question that hit now, is it possible to use onClientGUIClick directly on an image created through the GUI (guiCreateStaticImage)? or do i need to create a button behind this image to be able to verify the click correctly? if that's how it works. Link to comment
_Ace Posted March 3, 2020 Share Posted March 3, 2020 (edited) yes it is possible yourimg=guiCreateStaticImage ( your gui image... ) addEventHandler("onClientGUIClick",yourguibox, function() if source==yourimg then outputChatBox("test") end end) *it will detect the click as a square around the image if its png Edited March 3, 2020 by _Ace 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