VenomOG Posted September 29, 2019 Share Posted September 29, 2019 So im working on a ucp system and i added settings part, when i click settings section it shows but after i close and open, its gone :C my Code elseif o == "Settingss" then GUIEditord.grid[1] = guiCreateScrollPane(950, 350, 288, 278, false) for k,v in pairs (stngs) do l3 = guiCreateLabel(200, 18, 500, 630, "Settings", false, GUIEditord.grid[1]) guiSetFont(l3, "default-bold-small") nextSettingY = nextSettingY + 18 for _,sin in pairs (v) do l4 = guiCreateCheckBox(18, nextSettingY3+13, 298, 16, sin[1], false, false,l3) addEventHandler("onClientGUIClick", l4, sin[2]) guiCheckBoxSetSelected(l4, sin[3]()) nextSettingY3 = nextSettingY3 + 25 end end Link to comment
Investor Posted September 29, 2019 Share Posted September 29, 2019 You should show us the code which handles closing whatever it is that disappears forever. Perhaps it uses destroyElement where is should use guiSetVisible. 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