ZuKi|R Posted December 25, 2017 Share Posted December 25, 2017 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
Tails Posted December 25, 2017 Share Posted December 25, 2017 You have to post the rest of the code. Where you're setting the element data and where you're using asdfg. 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