Jump to content

tabbed gui


TmM_DEVIL

Recommended Posts

Remember to put this client side!

function serverInfo () 
  
    helpTab = guiCreateWindow ( 0.25, 0.25, 0.5, 0.6, "Select character", true ) 
  
        helpGridList = guiCreateGridList ( 0.0, 0.10, 0.18, 0.4, true, helpTab ) 
  
addEventHandler ("onClientGUIClick", helpGridList, chooseHelp ) 
column = guiGridListAddColumn ( helpGridList, "OHHH TEXT: ", 0.85 ) 
local press = guiGridListAddRow ( helpGridList ) 
  
press = guiGridListSetItemText ( helpGridList, press, column, "press moi", false, false) 
  
end 
addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), serverInfo) 
  
  
function chooseHelp () 
    local choosenHelp = guiGridListGetItemText ( helpGridList, guiGridListGetSelectedItem ( helpGridList ), 1 ) 
    if choosenHelp == "press moi" then 
        if not ( topic ) then 
outputChatBox("lollerskates + 1 = 5?") 
  
end 
end 
end 
  

http://development.mtasa.com/index.php? ... _functions

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...