Server events

orgCreated

RegisterNetEvent('pp-orgpanel:orgCreated', function(
    owner, -- owner identifier [string]
    name -- organization name [string]
    )
end)

upgradePurchased

RegisterNetEvent('pp-orgpanel:upgradePurchased', function(
    orgId, -- organization ID [number]
    upgrade, -- purchased upgrade [table]
    identifier -- identifier [string]
    )
end)

memberAdded

RegisterNetEvent('pp-orgpanel:memberAdded', function(
    orgId, -- organization ID [number]
    sourceId, -- source identifier [string]
    targetId -- target identifier (new member) [string]
    )
end)

memberFired

RegisterNetEvent('pp-orgpanel:memberFired', function(
    targetId, -- identifier of fired member [string]
    sourceId -- identifier of player who fired member [string]
    )
end)

memberLeaved

RegisterNetEvent('pp-orgpanel:memberLeaved', function(
    orgId, -- organization ID [number]
    identifier -- member identifier [string]
    )
end)

memberPromoted

RegisterNetEvent('pp-orgpanel:memberPromoted', function(
    memberId, -- promoted member identifier [string]
    newRank, -- new rank [string]
    sourceId -- identifier of player who promoted member [string]
    )
end)

permsUpdated

RegisterNetEvent('pp-orgpanel:permsUpdated', function(
    memberId, -- member identifier [string]
    perms, -- new perms [table]
    sourceId -- identifier of player who updated perms [string]
    )
end)