Jump to content

Adicionar player na gridlist


Recommended Posts

Criei uma gridlist no lado client, quero que ela mostre todos os players com uma data especifica, porém, ou ele não atualiza quando o player entra, ou adiciona dnv todos os players onlines,

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

 

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