LemonUI Get Started Template with sample Script 2.0
1,158
21
1,158
21
Change Log
1. Added a second, more advanced template, showing how Native List Item strings are handled. These strings have different behaviours and in this example the triggers are when the item changes (i.e. without hitting enter). The List Item is just one of the many options available to devs and hobbyists. It is compact and powerful.
2. Added exception handling specifically for spawning weapons.
About these templates
New developers with little programming experience invariably use outdated NativeUI Menu templates and mods. Time to move on to LemonUI right? Unfortunately you won't find what little documentation is available to be that helpful.
Hopefully the attached templates will be of value. Goal is to learn how create menus, with LemonUI (not NativeUI) and ideally to progress from bland vanilla menus, the ones "we've all seen it before", to whatever your imagination can think of. Note: the banner image in the demo is from GTA V to avoid installing textures.
For new programmers. Please stop using NativeUI and SHVDN2. They are no longer supported. For graphic artists, show us your best stuff.
Features
1. Fully working customizable c# script
2. How to add menus, submenus, string lists, integer lists, checkboxes, sliders
3. How to remove menu sounds
4. How to change colour of menu backgrounds
5. How to add banner images
6. How to remove the header section
7. How to remove the back and select buttons - do we really need these?
8. How to change fonts
9. And more...
Requirements
SHVDN3 (latest nightly build, i guess)
LemonUI (latest download)
Visual Studio or C# Compiler. Visual Studio has a free version.
Basic Programming skills, curiosity, and desire to learn (DIY mentality).
Credits:
The usual gang: Lemon, Kagikn, Crosire, Mr. Blade etc.
1. Added a second, more advanced template, showing how Native List Item strings are handled. These strings have different behaviours and in this example the triggers are when the item changes (i.e. without hitting enter). The List Item is just one of the many options available to devs and hobbyists. It is compact and powerful.
2. Added exception handling specifically for spawning weapons.
About these templates
New developers with little programming experience invariably use outdated NativeUI Menu templates and mods. Time to move on to LemonUI right? Unfortunately you won't find what little documentation is available to be that helpful.
Hopefully the attached templates will be of value. Goal is to learn how create menus, with LemonUI (not NativeUI) and ideally to progress from bland vanilla menus, the ones "we've all seen it before", to whatever your imagination can think of. Note: the banner image in the demo is from GTA V to avoid installing textures.
For new programmers. Please stop using NativeUI and SHVDN2. They are no longer supported. For graphic artists, show us your best stuff.
Features
1. Fully working customizable c# script
2. How to add menus, submenus, string lists, integer lists, checkboxes, sliders
3. How to remove menu sounds
4. How to change colour of menu backgrounds
5. How to add banner images
6. How to remove the header section
7. How to remove the back and select buttons - do we really need these?
8. How to change fonts
9. And more...
Requirements
SHVDN3 (latest nightly build, i guess)
LemonUI (latest download)
Visual Studio or C# Compiler. Visual Studio has a free version.
Basic Programming skills, curiosity, and desire to learn (DIY mentality).
Credits:
The usual gang: Lemon, Kagikn, Crosire, Mr. Blade etc.
최초 업로드: 2024년 08월 17일 (토)
마지막 업로드: 2024년 08월 19일 (월)
마지막 다운로드: 1시간 전
댓글 70
More mods by JohnFromGWN:
Change Log
1. Added a second, more advanced template, showing how Native List Item strings are handled. These strings have different behaviours and in this example the triggers are when the item changes (i.e. without hitting enter). The List Item is just one of the many options available to devs and hobbyists. It is compact and powerful.
2. Added exception handling specifically for spawning weapons.
About these templates
New developers with little programming experience invariably use outdated NativeUI Menu templates and mods. Time to move on to LemonUI right? Unfortunately you won't find what little documentation is available to be that helpful.
Hopefully the attached templates will be of value. Goal is to learn how create menus, with LemonUI (not NativeUI) and ideally to progress from bland vanilla menus, the ones "we've all seen it before", to whatever your imagination can think of. Note: the banner image in the demo is from GTA V to avoid installing textures.
For new programmers. Please stop using NativeUI and SHVDN2. They are no longer supported. For graphic artists, show us your best stuff.
Features
1. Fully working customizable c# script
2. How to add menus, submenus, string lists, integer lists, checkboxes, sliders
3. How to remove menu sounds
4. How to change colour of menu backgrounds
5. How to add banner images
6. How to remove the header section
7. How to remove the back and select buttons - do we really need these?
8. How to change fonts
9. And more...
Requirements
SHVDN3 (latest nightly build, i guess)
LemonUI (latest download)
Visual Studio or C# Compiler. Visual Studio has a free version.
Basic Programming skills, curiosity, and desire to learn (DIY mentality).
Credits:
The usual gang: Lemon, Kagikn, Crosire, Mr. Blade etc.
1. Added a second, more advanced template, showing how Native List Item strings are handled. These strings have different behaviours and in this example the triggers are when the item changes (i.e. without hitting enter). The List Item is just one of the many options available to devs and hobbyists. It is compact and powerful.
2. Added exception handling specifically for spawning weapons.
About these templates
New developers with little programming experience invariably use outdated NativeUI Menu templates and mods. Time to move on to LemonUI right? Unfortunately you won't find what little documentation is available to be that helpful.
Hopefully the attached templates will be of value. Goal is to learn how create menus, with LemonUI (not NativeUI) and ideally to progress from bland vanilla menus, the ones "we've all seen it before", to whatever your imagination can think of. Note: the banner image in the demo is from GTA V to avoid installing textures.
For new programmers. Please stop using NativeUI and SHVDN2. They are no longer supported. For graphic artists, show us your best stuff.
Features
1. Fully working customizable c# script
2. How to add menus, submenus, string lists, integer lists, checkboxes, sliders
3. How to remove menu sounds
4. How to change colour of menu backgrounds
5. How to add banner images
6. How to remove the header section
7. How to remove the back and select buttons - do we really need these?
8. How to change fonts
9. And more...
Requirements
SHVDN3 (latest nightly build, i guess)
LemonUI (latest download)
Visual Studio or C# Compiler. Visual Studio has a free version.
Basic Programming skills, curiosity, and desire to learn (DIY mentality).
Credits:
The usual gang: Lemon, Kagikn, Crosire, Mr. Blade etc.
최초 업로드: 2024년 08월 17일 (토)
마지막 업로드: 2024년 08월 19일 (월)
마지막 다운로드: 1시간 전
These templates are not meant for beginners although I do encourage anyone who is interested in learning how to script/code to do so. If you need to create a simple .ini file, without having to specify the path, you just create a file of exactly the same name as your dll. As an example for these templates, the file would be created with notepad or any text editor and renamed with the .ini extension instead of .txt.
For our templates: MenuDemo.ini
The contents of this simple text file would be:
[Settings]
Menukey = F3
If you want so specify a path, it's a little different, your code might look like this:
private const string ConfigFilePath = "scripts\\CameraScripts\\Camera.ini";
@JoyLucien This how i switch models, when I'm playing free roam. Actually there's a dozen ways to change but this one is cool because it also takes the other model's complete outfit.
https://www.youtube.com/watch?v=PCtrkEdllvg
@JohnFromGWN I watched your video, this is equivalent to the effect of Menyoo's soul swap gun, but this swap model can't play the plot, and playing the plot again with other characters is a different experience. The mod character-swap I mentioned before was set to Featured. I don't know why it was deleted recently, https://www.gta5-mods.com/scripts/character-swap , I could still see it last year. It can set the current player's ped to the hash of any other model but does not change the model.
@JoyLucien Yes I understand, that's why I wrote I don't understand why you would want to play the game with other characters. Would you play Batman as Superman? lol. Anyway, the one i was talking about, as garbage with a 2.6/5 is this one.
https://gta5mod.net/gta-5-mods/scripts/character-swap-1-1/
@JohnFromGWN Don't you think it looks more fun to replace all the original models of the cutscene with other models? Where can I see the ratings?
@JoyLucien First, just to clarify, in my video. The gun doesn't change the model. I just put it in the script so that they spawn with a weapon. I think with Menyoo you aim with the gun? Never used that option.
With respect to replacing protagonist models - for free roam yes, for gameplay no. Prefer lore for the gameplay.
The ratings of 2.6? Just scroll down the page, should be just above the Download area.
With regards to scripts, as I wrote before I don't use 3rd party scripts for so many reasons - invariably they crash, invariably they stop working with both R* and SHVDN updates, and generally speaking they don't interest me. As for scripts that expect the game or peds to behave consistently, that's a joke. You can always see comments on how this and that didn't work due to random behaviours - and honestly, that's what makes games fun...variability.
When I was learning how to script I did decompile many to see the workings inside, but honestly most of them suck really bad. Now I script on my own and it's a great feeling knowing you can do anything you want to do - wiithin limits ofc.
@JohnFromGWN But some people have really good scripting capabilities.
@JoyLucien Yes there are. But many are just using old NativeUI templates because they're taking code from older script mods. It's crazy that in 2024 NativeUI is still being used instead of LemonUI when the former is no longer supported or maintained.
@JohnFromGWN Because shvden still supports shvden2, if it doesn't support it, they will know that nativeUI is outdated. But lemonUI has a problem. When you click the menu to the submenu with the mouse, the mouse pointer will flash. This happens when switching any menu. This problem gives me the illusion that lemonUI is very laggy. But NativUI doesn't have this problem. I still use nativeUI and feel it is smoother than lemonUI
@JoyLucien SHVDN no longer maintains or provides support for SHVDN2 which really has nothing to do with NativeUI. You can use NativeUI with SHVDN3, and ofc you can keep using SHVDN2 if you want. As for LemonUI laggy? Have never seen that. You can always discuss it with Lemon. In my opinion NativeUI is really outdated. I would never use it.
@JohnFromGWN Isn't NativeUI loaded using the shv2 API? How can it be used with shv3? The lag I'm talking about is the mouse flickering, which gives me the illusion of lag. https://github.com/LemonUIbyLemon/LemonUI/issues/182
Just saw this video. Open the lemonui menu at the beginning of the video and you can see the mouse blinking when switching menus or moving the cursor up and down:https://youtu.be/_ZnsgbFY6_A?t=16
@JoyLucien Right now i'm focusing on innovative teleportation but I honestly have never noticed any issues with LemonUI regarding latency (Hardware issues?) etc. You can see my LemonUI menus in this video and I don't see any issues.
https://www.youtube.com/watch?v=Yxs3xVGO-9I
@JohnFromGWN Brother, I have been talking about the mouse flickering problem. I mean the mouse flickering will give me an illusion of delay, just like the computer you use, if you click, the mouse flickers, don't you feel uncomfortable, this flickering will give people an illusion of sluggishness
@JoyLucien The solution is very simple, disable the mouse while the menu is active. Watch the video below and you will see keyboard navigation without any mouse. Once menu is closed the mouse is restored. If that doesn't work for you and you feel NativeUI is better, then at least you have that option - or write your own menu framework.
https://www.youtube.com/watch?v=fCSPwInxQ5E
@JohnFromGWN But I just like to use the mouse, not the navigation keys. Using the mouse is more convenient and quick, just click it. Of course, I prefer the latest lemonUI under maintenance, so I don't know what caused it. I feel speechless. NavtiveUI doesn't have this problem.
@JohnFromGWN What is your discord account? I have a problem that I can't solve. I want to send you the source code to help me figure out what the problem is. My script is used to read menyoo's XML file and automatically generate peds, vehicles, and props within the set range. However, after a day of debugging, I can only generate vehicles and props, and peds always prompt hash value errors.
@JoyLucien vanilla peds or addonped? i don't see how addonpeds can work. I created a tool, which you modify to your needs to capture anything from the game that is supported by native functions. If the ped is an addon, you just enter its name for example "Lara" and you can return something like: Lara = SpawnPed("Lara", GetSpawnPositionFromPlayer(4.0f), false);
From there you can set component variations or whatever you want in the same tool. Or try something like this:
if (identifier is string pedName)
{
ped = World.CreatePed(pedName, spawnPosition);
}
else if (identifier is PedHash pedHash)
{
ped = World.CreatePed(pedHash, spawnPosition);
}
else
{
throw new ArgumentException("Identifier must be a string (name) or PedHash.");
You sir! are the best, this is like speedrun material. Making UI elements always is time-consuming, glad that now i can just copy-paste and improvise from there. Many thanks! I will credit you in the next update of my mod.
@mbahdokek Thank you. Glad if it helps.
@JohnFromGWN My problem is that it can dynamically generate characters within the coordinate area I set in the code. If I set it to read an external file, such as ini or txt, it will fail.I don't know which field is wrong, so it can't parse the character hash value or what