Jump to content

Combobox Help!


Recommended Posts

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.

Link to comment
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) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...