Jump to content

Refresh the gridlist.


Chaz-CR

Recommended Posts

So how the title says, i want to refresh the gridlist of the players when i open the panel, how can i do that? this is what i did with a loop.

    for id, playeritem in ipairs(getElementsByType("player")) do  
        local row = guiGridListAddRow ( gridlist ) 
           guiGridListSetItemText ( gridlist, row, playcol, string.gsub ( getPlayerName (playeritem), '#%x%x%x%x%x%x','' ), false, false ) 
    end 

Link to comment

watup Chaz, how you been? What you could also do to update the panel playerlist on events such as onClientPlayerJoin, onClientPlayerQuit, and onClientPlayerChangeNick. That way when you have the panel opened it just updates it automatically instead of opening and closing just so it refreshes.

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