EW1611 Posted December 6, 2019 Share Posted December 6, 2019 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
DNL291 Posted December 6, 2019 Share Posted December 6, 2019 Use: https://wiki.multitheftauto.com/wiki/GetPlayersByData Você pode colocar um timer para auto-atualizar a lista, ou gerar a lista quando abrir o painel da gridlist. Link to comment
EW1611 Posted December 6, 2019 Author Share Posted December 6, 2019 Já tentei adicionar os players quando abrir o painel, mas ele adiciona de novo todos os players onlines Link to comment
EW1611 Posted December 6, 2019 Author Share Posted December 6, 2019 Já resolvi com o guiGridListClear quando fechar o painel 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