Jump to content

Player gridlist


Xeno

Recommended Posts

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