Business.GetRole
Skip to content
mnscript
string Business.GetRole(string, Player) 

Description ​

Returns a given players role within a business

Arguments ​

string - The business name (Case sensitive)
Player - The Player to check

Returns ​

string - The role of the given player, N/A otherwise

Example ​

msc
using Console;
using Business;
using Player;

Player ply = Player.GetBySteamID("STEAM_0:1:34409736");
string role = Business.GetRole("Egg", ply);

if (role == "CEO")
{
    Console.WriteLine("The official CEO of Egg: " .. ply.GetName());
}

// OUTPUT:
// The official CEO of Egg: Ventz