FlyingSpoon Posted May 16, 2015 Posted May 16, 2015 function infoIt() local getInfo = guiComboBoxGetSelected(createComboBox) if getInfo == "Administrator Assistance" then if source == openBtn then guiSetVisible(wHelp,true) showCursor( true ) elseif getInfo == "Gamemaster Assistance" then if source == openBtn then gmReportUI() showCursor(true) end end end end addEventHandler("onClientGUIClick", getRootElement(), infoIt) No errors outputted.
ALw7sH Posted May 16, 2015 Posted May 16, 2015 function infoIt() local getInfo = guiComboBoxGetSelected(createComboBox) local infoText = guiComboBoxGetItemText(createComboBox, getInfo) if infoText == "Administrator Assistance" then if source == openBtn then guiSetVisible(wHelp,true) showCursor( true ) end elseif infoText == "Gamemaster Assistance" then if source == openBtn then gmReportUI() showCursor(true) end end end addEventHandler("onClientGUIClick", getRootElement(), infoIt)
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