Jump to content

Evento quando clico em mim


Recommended Posts

Use algo como:

 

addEventHandler("onClientClick", root,
    function(_, _, _, _, _, _, _, elemento)
        if (getElementType(elemento) == "player") then
            if (elemento == localPlayer) then
                -- Código
            end
        end
    end
)

 

Edited by Lord Henry
Adicionado condição que verifica se o elemento clicado é o próprio jogador.
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...