3ff5u5 Posted July 20, 2016 Share 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) Link to comment
EstrategiaGTA Posted July 20, 2016 Share 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) Link to comment
Walid Posted July 20, 2016 Share Posted July 20, 2016 Just replace getRootElement() with resourceRoot. 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