Xeno Posted June 5, 2010 Share Posted June 5, 2010 I am making a guest panel for a server and I am trying to put a grid list with players in it. I tried the wiki example and it didn't seem to work . Please help. Tom Link to comment
The_Ex Posted June 5, 2010 Share Posted June 5, 2010 (edited) It's pretty easy. -.- local players = getElementsByType("player") for k,v in ipairs(players) do local row = guiGridListAddRow(grid1) --grid1 is your grid... guiGridListSetItemText(grid1, row, 1,getPlayerName(v), false, false) end EDIT: This code should be executed when local player joins and just add players to grid or remove them when onClientPlayerJoin/onClientPlayerQuit is called. Edited June 5, 2010 by Guest Link to comment
50p Posted June 5, 2010 Share Posted June 5, 2010 Or you can try my GUI lib which makes it easier to script gridlists. https://wiki.multitheftauto.com/wiki/GUI_Classes Link to comment
Castillo Posted June 6, 2010 Share Posted June 6, 2010 Or you can try my GUI lib which makes it easier to script gridlists.https://wiki.multitheftauto.com/wiki/GUI_Classes actually i never tryed this gui classes O_o, i ever used guieditor 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