Jump to content

Any way?


manve1

Recommended Posts

sorry Solidsnake14, but i don't really know how to use that thing u wrote :| is it possible u can re-make my script?

function playerList() 
        local Grid = guiCreateGridList( 0.05, 0.1, 0.25, 0.8, true, Wnd ) 
        local Column = guiGridListAddColumn( Grid, "Player", 0.85 ) 
        if ( Column ) then 
                for id, player in ipairs(getElementsByType("player")) do 
                        local Row = guiGridListAddRow ( Grid ) 
                        guiGridListSetItemText ( Grid, Row, Column, getPlayerName ( player ), false, false ) 
                end 
        end 
end 
setTimer( playerList, 100, 0 ) 
addEventHandler("onClientResourceStart", root, playerList) 

Link to comment

The timer here will cause for you a problems, the grid list will be created over and over you will notice that your fps will be low because of this.

setTimer( playerList, 100, 0 ) 

and the event

addEventHandler("onClientResourceStart", root, playerList) 

should be

addEventHandler("onClientResourceStart", resourceRoot, playerList) 

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