sousateew Posted October 13, 2020 Share Posted October 13, 2020 Queria saber o event quando clico em mim e ele executa. Link to comment
Moderators Patrick Posted October 13, 2020 Moderators Share Posted October 13, 2020 Wrong language, moved to Portuguese section. And I think this is what are you looking for, onClientClick. Link to comment
Rested Posted October 14, 2020 Share Posted October 14, 2020 (edited) Use algo como: addEventHandler("onClientClick", root, function(_, _, _, _, _, _, _, elemento) if (getElementType(elemento) == "player") then if (elemento == localPlayer) then -- Código end end end ) Edited October 16, 2020 by Lord Henry Adicionado condição que verifica se o elemento clicado é o próprio jogador. 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