if (C.HideGUI == 1)
{
// Car Button
InSim.Send_BTN_CreateButton("" + TempCars1, Flags.ButtonStyles.ISB_DARK, 4, 75, 0, 34, 140, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
// Cash Button
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash > 0)
{
InSim.Send_BTN_CreateButton("^7$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash < 0)
{
InSim.Send_BTN_CreateButton("^1$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
// Total Distance Button
InSim.Send_BTN_CreateButton("^7" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000d + " km", Flags.ButtonStyles.ISB_DARK, 3, 12, 0, 121, 162, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
// Distance Bonus Button
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 18, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 12, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Bonus: ", Flags.ButtonStyles.ISB_DARK | Flags.ButtonStyles.ISB_LEFT, 4, 34, 0, 133, 13, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 140, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 5, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 162, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 18, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 12, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 13, C.UniqueID);
}
ClsConnections.cs
public byte HideGUI;
Not sure if it works cause i used notepad to make it, but last thing you need to do is make a command for it to close the buttons