Grant Permission

Hi there

i’m looking for a way to grant permission to player

Example:

class Noob_Player : public PlayerScript
{
public:
Noob_Player() : PlayerScript(“Noob_Player”) { }

void OnLogin(Player* player)
{
    if (player-GetSession->IsNoob)
        player->GetSession->AddGrantedPermission(1000);
}

};

i know i can grant permissions with rbac tables, but i want done this within C++