private async Task Scaleform(string mainText, string description, bool addTime) { int scaleform = API.RequestScaleformMovie("mp_big_message_freemode"); while (!API.HasScaleformMovieLoaded(scaleform)) { await Delay(10); } API.PushScaleformMovieFunction(scaleform, "SHOW_SHARD_WASTED_MP_MESSAGE"); API.PushScaleformMovieFunctionParameterString(mainText); API.PushScaleformMovieFunctionParameterString(description); API.PopScaleformMovieFunctionVoid(); if (addTime) { _jailLength += 60; } if (_playerJailed) { TriggerEvent("DOJ.Jail.ProcessJailTime"); } while (true) { API.DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0); Screen.DisplayHelpTextThisFrame("Press ~y~E~w~ to continue."); await Delay(10); if (Game.IsControlPressed(0, Control.Context)) { API.PlaySoundFrontend(-1, "TextHit", "WastedSounds", true); break; } } API.SetScaleformMovieAsNoLongerNeeded(ref scaleform); }