How to make cheat code system like in GTA?

Can someone please help me? I need cheat code system = when I write in example 1234, I will get new gun (gun model will SetActive(true)). I was looking for some tutorials but nothing is here. Thank you…

That’s too broad a question pal. Because typing ‘1234’ is just a fairly basic form of handling keyboard input. so you just need to check Input.GetKey and make a function create a string that if that matches your cheat code string then it returns true.

Then when that is true, you have to spawn the gun, in the correct position with correct parenting, rotation etc etc and that’s where it could get complicated.

Learn in small steps

Thank you everything is done now!

https://github.com/CARVERD12/Unity3D-GTA-Cheat-System