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