Create an AIConnection and replace %client with the aiconnection:
new AIConnection(CityRPG_AI)
{
isAdmin = 1;
isSuperAdmin = 1;
bl_id = 1337;
};
serverCmdEnvGui_SetVar(CityRPG_AI,%type,%val);
example:
serverCmdEnvGui_SetVar(CityRPG_AI,"SunElevation",35);
the above code will set the sun's elevation to 35.
refer to the save favorites for other env stuff.