TmM_DEVIL Posted January 27, 2008 Share Posted January 27, 2008 how would i got at making a gui with tabs can some one share a snippet so i get the basic idea Link to comment
Hedning Posted January 27, 2008 Share Posted January 27, 2008 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
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