Jump to content

[REL]Group System


Smart.

Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 years later...
function printManagment(player) 
    if (player) then player = client end 
    local group = getPlayerGroup(client) 
    for ind, data in pairs(GAC) do 
        if (data[1] == group) then 
            local rank, warning, joined, lastTime = GAC[ind][2], GAC[ind][3],GAC[ind][4], GAC[ind][5] 
            triggerClientEvent(client, "groupSystem.addToList", client, tostring(ind), rank, warning, joined, lastTime, getPlayerName(client), getAccountPlayer(getAccount(ind))) --Here is the error (Bad Argument @ getAccountPlayer) 
        end 
    end 
end 
addEvent("groupSystem.print", true) 
addEventHandler("groupSystem.print", root, printManagment) 

nick of group players does not appear, I tried to add 

getPlayerName

 but only appeared my nick

Link to comment
  • 2 years later...

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