Jump to content

Disable Button in Zone


ZuKi|R

Recommended Posts

Hi, I'm creating a function where I want to know that if the player is in an area, a button on a panel is deactivated (in this case I'm using setElementData and getElementData)
This is my code, please help me?
(I'm Using Google Translate Sorry)

 

------ Funciones --------


function asdfg ()
if getElementData(localPlayer,"EnZona") == "Si" then
guiSetEnabled(invisible,false)
else
guiSetEnabled(invisible,true)
end
end

 

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...