コード例 #1
0
ファイル: TestClient.cs プロジェクト: Yarpii/esx-wrapper
        private async void AdvancedHudTest(int source, List <object> args, string raw)
        {
            IconType[] icons = { IconType.ChatBox, IconType.AddFriendRequest, IconType.Dollar, IconType.Email, IconType.RightJumpingWindow, IconType.RP };

            for (int i = 0; i < 166; i++)
            {
                NotificationPicture pic = (NotificationPicture)i;
                ESX.ShowAdvancedNotification("Nexd", "~h~F*!K YOU~h~", $"N: ~h~{i}~h~~n~~h~~g~{pic}~h~", pic, icons[GetRandomIntInRange(0, 6)], true, true, (HudColor)i);
                await Delay(2000);
            }
        }
コード例 #2
0
        public static void ShowAdvancedNotification(string sender, string subject, string message, NotificationPicture notificationPicture = NotificationPicture.CHAR_MULTIPLAYER, IconType iconType = IconType.ChatBox, bool flash = false, bool savetoBreif = true, HudColor hudColor = HudColor.HUD_COLOUR_DEFAULT)
        {
            if (hudColor != HudColor.HUD_COLOUR_DEFAULT)
            {
                Raw.ShowAdvancedNotification(sender, subject, message, notificationPicture.ToString(), (int)iconType, flash, savetoBreif, (int)hudColor);
                return;
            }

            Raw.ShowAdvancedNotification(sender, subject, message, notificationPicture.ToString(), (int)iconType, flash, savetoBreif, null);
        }