Business.GetCEO
Skip to content
mnscript
string Business.GetCEO() 

Description ​

Returns the CEO of this business

Returns ​

string - The steamid of the CEO

Example ​

msc
using Console;
using Player;
using Business;

Business egg = Business.GetBusiness("Egg");

// Is the CEO online?
string sid = egg.GetCEO();
Player ceo = Player.GetBySteamID(sid);

if (ceo.IsValid())
{
    Console.WriteLine("The CEO of Egg (" .. ceo.GetName() .. ") is online!");
}
else
{
    Console.WriteLine("The CEO of Egg is NOT online!");
}

// OUTPUT:
// The CEO of Egg (Ventz) is online!