Jump to content

Help?


GTX

Recommended Posts

addEventHandler("onResourceStart", resourceRoot, 
function() 
exports.scoreboard:scoreboardAddColumn("Rank") 
end) 
  
function tables( ) 
    outputChatBox( "Top 3 points:", root, 255,255,255 ) 
    for index, data in ipairs( sortAccounts( ) ) do 
        outputChatBox("#"..tostring( index )..": ".. tostring( data.account ) .." - ".. tostring( data.points ), root, 255, 255, 255 ) 
        setElementData(tostring(data.account), "Rank", index) 
        if index == 3 then 
            break 
        end 
    end 
    triggerClientEvent( 'onAccountsSend',root,sortAccounts( ) ) 
end 
addCommandHandler( "top", tables ) 

Errors:

[16:31:30] WARNING: [gtx]\upanel\stats_s.lua:182: Bad argument @ 'setElementData' [Expected element at argument 1, got string '-DTR-GTX#ff0000#']

[16:31:30] WARNING: [gtx]\upanel\stats_s.lua:182: Bad argument @ 'setElementData' [Expected element at argument 1, got boolean]

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