Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- actual code --
- var variablename = new UIMenuItem("Remove Wanted Level", "Lowers Wanted Level");
- menu.AddItem(variablename);
- menu.OnItemSelect += (sender, item, index) =>
- {
- if (item == variablename)
- {
- Game.Player.IsInvincible = true;
- UI.Notify("Code Activated");
- }
- };
- -- non-code --
- you can change "variablename" to any solid name, like example "wantedlevel". that way it'd say "var wantedlevel".
- anything that has the variablename in it, change it to what you named the variable
- for instance, if you named the variable "level" you'd change the "var variablename" to "var level", you'd change "if (item == variablename)" to "if (item == level)" and "menu.AddItem(variablename);" to "menu.AddItem(level);"
- hope this clears it up.
- native database for where I got "Game.Player.IsInvincible" from:
- http://www.dev-c.com/nativedb/ (this is where I got all the natives and hashes from)
- https://github.com/Guad/NativeUI/blob/master/MenuExample.cs (this is where I got some of the regular code from)
- https://www.gta5-mods.com/tools/gta-v-script-creator (this is where I got the "Game.Player.IsInvincible" code from, the program itself includes the code.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement