Closed Artzalez closed 4 years ago
PD: Is RedM Release
Does this also happen with v3.1.1?
yes, it also happened to me in 3.1.1 and that's why I downloaded 3.1.3 today to try but it remains the same
Alright, it seems to crash here:
Which makes me think that your MenuController.MainMenu
is null? Did you make a menu and add it using MenuController.AddMenu()
or MenuController.AddSubMenu()
?
using AddMenu
@DevBiiTz and did you make sure that that code is actually executed (for example adding a Debug.WriteLine($"{MenuController.MainMenu.MenuTitle}");
right after MenuController.AddMenu(menuStables);
) ?
I will try to see
That error happens from time to time to one in 6 users who connect
also sometimes while you play and you have been doing nothing for a long time this comes out as it just came out right now
also sometimes while you play and you have been doing nothing for a long time this comes out as it just came out right now
This error repeat every tick and you need reconnect to fix
also sometimes while you play and you have been doing nothing for a long time this comes out as it just came out right now
This error repeat every tick and you need reconnect to fix
That's probably a RDR issue that I can't solve, because this crashes:
Call(SET_STREAMED_TEXTURE_DICT_AS_NO_LONGER_NEEDED, asset);
I'll add a null check for that, as well as the other thing, hopefully that helps but I don't think it will.
That error happens from time to time to one in 6 users who connect
I've also added null checks for this, which should print an error in the console if the MainMenu is in fact null. So it shouldn't crash, but the menu won't open if you press the button.
Here's a direct download link to the version with these changes mentioned above:
Let me know if this helps. Unfortunately RedM does not work for me at all (it crashes either right before or right as I'm about to spawn in on any server) so I won't be able to test anything.
Sorry my bad english. I just checked one thing that when you dump and open the menu with the L key it doesn't make it run, it's like the menu actually hides when closed and then lets you open it again by pressing the L key
Example: [1] - When i open menu in the shop pressin Enter key [2] - Once the menu has been opened, I close it using the backspace, I leave the store area and press the L key and the menu is displayed without running the debug.writeline
also sometimes while you play and you have been doing nothing for a long time this comes out as it just came out right now
This error repeat every tick and you need reconnect to fix
That's probably a RDR issue that I can't solve, because this crashes:
Call(SET_STREAMED_TEXTURE_DICT_AS_NO_LONGER_NEEDED, asset);
I'll add a null check for that, as well as the other thing, hopefully that helps but I don't think it will.
That error happens from time to time to one in 6 users who connect
I've also added null checks for this, which should print an error in the console if the MainMenu is in fact null. So it shouldn't crash, but the menu won't open if you press the button.
Here's a direct download link to the version with these changes mentioned above:
Let me know if this helps. Unfortunately RedM does not work for me at all (it crashes either right before or right as I'm about to spawn in on any server) so I won't be able to test anything.
Thanks, i got try
[2] - Once the menu has been opened, I close it using the backspace, I leave the store area and press the L key and the menu is displayed without running the debug.writeline
Well, that sounds like it's fine because you should only create and add the menu once. Don't create a new menu every single time or re-add the same menu multiple times.
The natives' bugs seem fixed,
A friend entered the server after me and hit the L key without first going to the store and this came out
The natives' bugs seem fixed,
A friend entered the server after me and hit the L key without first going to the store and this came out
Yes, that's because you haven't added a menu yet. You have to make sure there is a MainMenu set before someone can press the button to toggle the menu.
The natives' bugs seem fixed, A friend entered the server after me and hit the L key without first going to the store and this came out
Yes, that's because you haven't added a menu yet. You have to make sure there is a MainMenu set before someone can press the button to toggle the menu.
Thank you very much for your help 😃
I understand, these menus are for a store that are in a location and I would like to disable the menu key, is there any right way or do I have to do it under an edited version ?
Yes, you can set it to -1 or something like that using:
MenuController.MenuToggleKey = (Control)-1;
And don't forget to disable the controller keybind as well:
MenuController.EnableMenuToggleKeyOnController = false;
I have updated to the latest version and this keeps happening to me, any idea why it is? when you open any menu then you can reopen it by hitting the L key
Thanks for this project <3.