Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using NativeUI;
- using GTA;
- using GTA.Native;
- using GTA.Math;
- using System;
- using System.Windows.Forms;
- using System.Collections.Generic;
- using System.IO;
- using System.Drawing;
- using System.Media;
- public class template : Script
- {
- private Ped playerPed = Game.Player.Character;
- private Player player = Game.Player;
- private MenuPool _menuPool;
- public template()
- {
- UI.Notify("Script ScriptTemplate ~r~Loaded~w~!");
- StartInfo();
- Tick += OnTick;
- KeyDown += OnKeyDown;
- KeyUp += OnKeyUp;
- }
- private void OnTick(object sender, EventArgs e)
- {
- }
- private void OnKeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.F10)
- {
- Menu();
- }
- }
- private void StartInfo()
- {
- UI.ShowSubtitle("Click ~g~F10 ~w~for open ~r~Menu~w~.", 3000);
- }
- private void Menu()
- {
- var mainMenu = new UIMenu("Native UI", "~b~NATIVEUI SHOWCASE");
- _menuPool.Add(mainMenu);
- _menuPool.ProcessMenus();
- mainMenu.Visible = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement