Exemple #1
0
 private async void CharacterCancel(dynamic _data)
 {
     Debug.Write("Closed!");
     Screen.Effects.Stop(ScreenEffect.SwitchHudIn);
     NUI.Close();
     API.SetNuiFocus(false, false);
 }
Exemple #2
0
        private async void CharacterSelected(Character obj)
        {
            Debug.WriteLine("{0}", $"Character selected! {obj.FirstName} {obj.LastName}");

            Screen.Fading.FadeOut(10);
            while (Screen.Fading.IsFadingOut)
            {
                await Delay(0);
            }

            NUI.Close();

            if (cam != null)
            {
                cam.Enabled = false;
            }

            IsCharacterSelectionActive = false;

            foreach (var ped in peds.Keys)
            {
                ped.Model.MarkAsNoLongerNeeded();
                ped.Delete();
            }

            showAll();

            FireEvent("fivelife.character.selected", obj);
            FireServerEvent("fivelife.character.selected", obj);
        }
Exemple #3
0
 private void HideUI()
 {
     isGameUIOpen = false;
     NUI.Close();
 }