Comments (20)
And don't forget to disable the controller keybind as well:
MenuController.EnableMenuToggleKeyOnController = false;
from menuapi.
PD: Is RedM Release
from menuapi.
Does this also happen with v3.1.1?
from menuapi.
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
from menuapi.
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()
?
from menuapi.
from menuapi.
@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);
) ?
from menuapi.
I will try to see
from menuapi.
from menuapi.
That error happens from time to time to one in 6 users who connect
from menuapi.
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
from menuapi.
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
from menuapi.
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.
from menuapi.
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
from menuapi.
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 connectI'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
from menuapi.
[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.
from menuapi.
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
from menuapi.
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.
from menuapi.
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 outYes, 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 ?
from menuapi.
Yes, you can set it to -1 or something like that using:
MenuController.MenuToggleKey = (Control)-1;
from menuapi.
Related Issues (20)
- PreventExitingMenu not working HOT 1
- Exception during Executing Post callback: NullRefernceException HOT 2
- Color.FromArgb issue HOT 3
- Setting a menu ("", description) hides HeadTextures HOT 3
- OnMenuClose.. close too much HOT 9
- [Request/suggestion] Exposing delay variable for user input HOT 7
- MenuAPI Exports HOT 1
- Input stucks
- Fix the need to make new ListItems for changing color / opacity HOT 6
- How to add an image to the header? HOT 5
- Menu opens by pressing M HOT 2
- Menu crashes on initialize HOT 3
- Menu Glare HOT 4
- The type 'Control' is defined in an assembly that is not referenced. HOT 2
- Suggestion: Update to RegisterKeyMapping HOT 3
- Invisible Menu HOT 3
- Permission to use a feature HOT 2
- M opens multiple menus HOT 1
- [enhancement] Add new NativeUI features HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from menuapi.