OutdatedBasis for a Hack Menu Using Unity

Posts 115 of 25 · Page 1 of 2
Basis for a Hack Menu Using Unity
I wrote a small base for unturned/unity hack menus.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public class Hacks : MonoBehaviour
{
    bool            hack            = false;
    bool            esp             = true;
    float           scrHeight       = Screen.height;
    int selection = 1;
    int maxSelect = 4;
    float           scrWidth        = Screen.width;
    void Start()
    {

    }
    
    void Update()
    {
        //Keycode hack activation
        if (Input.GetKeyDown(KeyCode.Insert))
        {
            hack = !hack;
        }
        if (hack)
        {
            if(Input.GetKeyDown(KeyCode.DownArrow))
            {
                if (selection != maxSelect)
                {
                    selection += 1;
                }
                else
                {
                    if (selection == maxSelect)
                    {
                        selection = 1;
                    }
                }
            }
            
            if (Input.GetKeyDown(KeyCode.UpArrow))
            {
                if (selection != 1)
                {
                    selection -= 1;
                }
                else
                {
                    if (selection == 1)
                    {
                        selection = maxSelect;
                    }
                }
            }
            
            if (Input.GetKeyDown(KeyCode.RightControl))
            {
                if (selection == 1)
                {
                    selection1();
                }
                else
                {
                    if (selection == 2)
                    {
                        selection2();
                    }
                    else
                    {
                        if (selection == 3)
                        {
                            selection3();
                        }
                        else
                        {
                            if (selection == 4)
                            {
                                selection4();
                            }
                            else
                            {

                            }
                        }
                    }
                }
            }
        }

    }
    // FUNCTIONS
    void selection1()
    {
        
    }

    void selection2()
    {
        
    }
    
    void selection3()
    {
        
    }

    void selection4()
    {
        
    }

    void OnGUI()
    {
        //Nice GUI
        GUI.color = Color.magenta;
        GUI.Label(new Rect(200, 0, 200, 40), "Hack Name v1.0");
        GUI.color = Color.white;
        if (hack)
        {
            GUI.Box(new Rect(0, 290, 120, 300), "- Functions -");
            if (selection == 1)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 320, 100, 30), "Selection1");
            if (selection == 2)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 350, 100, 30), "Selection2");
            if (selection == 3)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 380, 100, 30), "Selection3");

            if (selection == 4)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 410, 100, 30), "Selection4");

        }
    }
}
If anyone releases a menu using this I would appreciate a small credit. Thanks
Thanks man ! Ima get to work
Quote Originally Posted by jumboperson187 View Post
I wrote a small base for unturned/unity hack menus.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public class Hacks : MonoBehaviour
{
    bool            hack            = false;
    bool            esp             = true;
    float           scrHeight       = Screen.height;
    int selection = 1;
    int maxSelect = 4;
    float           scrWidth        = Screen.width;
    void Start()
    {

    }
    
    void Update()
    {
        //Keycode hack activation
        if (Input.GetKeyDown(KeyCode.Insert))
        {
            hack = !hack;
        }
        if (hack)
        {
            if(Input.GetKeyDown(KeyCode.DownArrow))
            {
                if (selection != maxSelect)
                {
                    selection += 1;
                }
                else
                {
                    if (selection == maxSelect)
                    {
                        selection = 1;
                    }
                }
            }
            
            if (Input.GetKeyDown(KeyCode.UpArrow))
            {
                if (selection != 1)
                {
                    selection -= 1;
                }
                else
                {
                    if (selection == 1)
                    {
                        selection = maxSelect;
                    }
                }
            }
            
            if (Input.GetKeyDown(KeyCode.RightControl))
            {
                if (selection == 1)
                {
                    selection1();
                }
                else
                {
                    if (selection == 2)
                    {
                        selection2();
                    }
                    else
                    {
                        if (selection == 3)
                        {
                            selection3();
                        }
                        else
                        {
                            if (selection == 4)
                            {
                                selection4();
                            }
                            else
                            {

                            }
                        }
                    }
                }
            }
        }

    }
    // FUNCTIONS
    void selection1()
    {
        
    }

    void selection2()
    {
        
    }
    
    void selection3()
    {
        
    }

    void selection4()
    {
        
    }

    void OnGUI()
    {
        //Nice GUI
        GUI.color = Color.magenta;
        GUI.Label(new Rect(200, 0, 200, 40), "Hack Name v1.0");
        GUI.color = Color.white;
        if (hack)
        {
            GUI.Box(new Rect(0, 290, 120, 300), "- Functions -");
            if (selection == 1)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 320, 100, 30), "Selection1");
            if (selection == 2)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 350, 100, 30), "Selection2");
            if (selection == 3)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 380, 100, 30), "Selection3");

            if (selection == 4)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 410, 100, 30), "Selection4");

        }
    }
}
If anyone releases a menu using this I would appreciate a small credit. Thanks
Trying to learn C# at the moment :P. Any tips?
Quote Originally Posted by LordNature View Post
Trying to learn C# at the moment :P. Any tips?
Same as every other language but with different functions. Relatively simple. I taught myself C++ and then C# was easy.
Quote Originally Posted by jumboperson187 View Post
Same as every other language but with different functions. Relatively simple. I taught myself C++ and then C# was easy.
I know Java, PHP, HTML5, Sass, MySQLi, Ruby, RoR, Batch, and a little bit of Python. Will any of that help?
Most of the languages are used for web development.
Quote Originally Posted by LordNature View Post
I know Java, PHP, HTML5, Sass, MySQLi, Ruby, RoR, Batch, and a little bit of Python. Will any of that help?
Most of the languages are used for web development.
Yea, all of those would help.
Quote Originally Posted by Blueblood1 View Post
Just seems like extra work to me.
What does? Helping people out with a small framework? I wrote this in a solid 10 minutes that would have been spent doing something stupid otherwise.
Quote Originally Posted by jumboperson187 View Post
Yea, all of those would help.
Also, where do I download the Titanium Devkit as well as Titanium?
Quote Originally Posted by LordNature View Post
Also, where do I download the Titanium Devkit as well as Titanium?
Titanium was originally used for rust so in the rust section most likely
Quote Originally Posted by BarackObamaCare View Post
Titanium was originally used for rust so in the rust section most likely
I got Titanium from it, but not the dev kit.
Quote Originally Posted by LordNature View Post
I got Titanium from it, but not the dev kit.
Check the *OTHER* site, where it was originally posted.
Quote Originally Posted by LordNature View Post
I got Titanium from it, but not the dev kit.
do a quick google search
second link
Quote Originally Posted by jumboperson187 View Post
I wrote a small base for unturned/unity hack menus.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public class Hacks : MonoBehaviour
{
    bool            hack            = false;
    bool            esp             = true;
    float           scrHeight       = Screen.height;
    int selection = 1;
    int maxSelect = 4;
    float           scrWidth        = Screen.width;
    void Start()
    {

    }
    
    void Update()
    {
        //Keycode hack activation
        if (Input.GetKeyDown(KeyCode.Insert))
        {
            hack = !hack;
        }
        if (hack)
        {
            if(Input.GetKeyDown(KeyCode.DownArrow))
            {
                if (selection != maxSelect)
                {
                    selection += 1;
                }
                else
                {
                    if (selection == maxSelect)
                    {
                        selection = 1;
                    }
                }
            }
            
            if (Input.GetKeyDown(KeyCode.UpArrow))
            {
                if (selection != 1)
                {
                    selection -= 1;
                }
                else
                {
                    if (selection == 1)
                    {
                        selection = maxSelect;
                    }
                }
            }
            
            if (Input.GetKeyDown(KeyCode.RightControl))
            {
                if (selection == 1)
                {
                    selection1();
                }
                else
                {
                    if (selection == 2)
                    {
                        selection2();
                    }
                    else
                    {
                        if (selection == 3)
                        {
                            selection3();
                        }
                        else
                        {
                            if (selection == 4)
                            {
                                selection4();
                            }
                            else
                            {

                            }
                        }
                    }
                }
            }
        }

    }
    // FUNCTIONS
    void selection1()
    {
        
    }

    void selection2()
    {
        
    }
    
    void selection3()
    {
        
    }

    void selection4()
    {
        
    }

    void OnGUI()
    {
        //Nice GUI
        GUI.color = Color.magenta;
        GUI.Label(new Rect(200, 0, 200, 40), "Hack Name v1.0");
        GUI.color = Color.white;
        if (hack)
        {
            GUI.Box(new Rect(0, 290, 120, 300), "- Functions -");
            if (selection == 1)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 320, 100, 30), "Selection1");
            if (selection == 2)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 350, 100, 30), "Selection2");
            if (selection == 3)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 380, 100, 30), "Selection3");

            if (selection == 4)
            {
                GUI.color = Color.red;
            }
            else
            {
                GUI.color = Color.white;
            }
            GUI.Label(new Rect(10, 410, 100, 30), "Selection4");

        }
    }
}
If anyone releases a menu using this I would appreciate a small credit. Thanks

Love this ! Really nice gui bro with a few tweaks I got it lookin sexy
Just seems like extra work to me.
Website c?a bên mình hình nhu code gi?ng website c?a b?n, b?n th? qua tham kh?o website c?a mình xem "bepthaison.vn"
All we need now is source codes to add into the base
Posts 115 of 25 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?