3ff5u5 Posted July 20, 2016 Posted July 20, 2016 I have a problem. When i restart any resource appear GUI from other resource. How I can fix it? CODE FROM OTHER RESOURCE: function playerjoin() showCursor(true) guiSetVisible(gui["loginpanel"]["main"][1],true) guiSetVisible(gui["loginpanel"]["button"][1],true) guiSetVisible(gui["loginpanel"]["button"][2],true) guiSetVisible(gui["loginpanel"]["button"][3],true) guiSetInputEnabled(true) end addEventHandler("onClientResourceStart", getRootElement(), playerjoin)
EstrategiaGTA Posted July 20, 2016 Posted July 20, 2016 Use this: function playerjoin() showCursor(true) guiSetVisible(gui["loginpanel"]["main"][1],true) guiSetVisible(gui["loginpanel"]["button"][1],true) guiSetVisible(gui["loginpanel"]["button"][2],true) guiSetVisible(gui["loginpanel"]["button"][3],true) guiSetInputEnabled(true) end addEventHandler("onClientResourceStart", resourceRoot, playerjoin)
Walid Posted July 20, 2016 Posted July 20, 2016 Just replace getRootElement() with resourceRoot. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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