How can I translate the mod, I do not understand much of C #, I opened the project in visual studio but I can not compile!
return new PointF(
(int) Math.Round((1280 - (1280 * t)) / 2),
(int) Math.Round((720 - (720 * t)) / 2)
);
}
/// <summary>
/// Change instructions for engine cut off
/// </summary>
public void InstructTurnOffEngine()
{
buttons.CallFunction("CLEAR_ALL");
buttons.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
buttons.CallFunction("CREATE_CONTAINER");
buttons.CallFunction("SET_DATA_SLOT", 0, Function.Call<string>((Hash) 0x0499D7B09FC9B407, 2, (int) Control.VehicleHorn, 0), "Desligar motor");
buttons.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
}
/// <summary>
/// Change instructions for refueling and engine spin up
/// </summary>
public void InstructRefuelOrTurnOnEngine()
{
buttons.CallFunction("CLEAR_ALL");
buttons.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
buttons.CallFunction("CREATE_CONTAINER");
buttons.CallFunction("SET_DATA_SLOT", 0, Function.Call<string>((Hash) 0x0499D7B09FC9B407, 2, (int) Control.Jump, 0), "Reabastecer");
buttons.CallFunction("SET_DATA_SLOT", 1, Function.Call<string>((Hash) 0x0499D7B09FC9B407, 2, (int) Control.VehicleHorn, 0), "Ligar motor");
buttons.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
}`