Giter VIP home page Giter VIP logo

Comments (20)

TomGrobbe avatar TomGrobbe commented on September 2, 2024 1

And don't forget to disable the controller keybind as well:

MenuController.EnableMenuToggleKeyOnController = false;

from menuapi.

Artzalez avatar Artzalez commented on September 2, 2024

PD: Is RedM Release

from menuapi.

TomGrobbe avatar TomGrobbe commented on September 2, 2024

Does this also happen with v3.1.1?

from menuapi.

Artzalez avatar Artzalez commented on September 2, 2024

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.

TomGrobbe avatar TomGrobbe commented on September 2, 2024

Alright, it seems to crash here:
image
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.

Artzalez avatar Artzalez commented on September 2, 2024

image
using AddMenu

from menuapi.

TomGrobbe avatar TomGrobbe commented on September 2, 2024

@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.

Artzalez avatar Artzalez commented on September 2, 2024

I will try to see

from menuapi.

Artzalez avatar Artzalez commented on September 2, 2024

image

from menuapi.

Artzalez avatar Artzalez commented on September 2, 2024

That error happens from time to time to one in 6 users who connect

from menuapi.

Artzalez avatar Artzalez commented on September 2, 2024

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

image

from menuapi.

Artzalez avatar Artzalez commented on September 2, 2024

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

image

This error repeat every tick and you need reconnect to fix

from menuapi.

TomGrobbe avatar TomGrobbe commented on September 2, 2024

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
image

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.


image
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:

https://cdn.discordapp.com/attachments/651445289781297183/712992320965836840/MenuAPI-dev-1.1.81-RedM.zip

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.

Artzalez avatar Artzalez commented on September 2, 2024

Sorry my bad english.
image
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.

Artzalez avatar Artzalez commented on September 2, 2024

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
image

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.

image
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:

https://cdn.discordapp.com/attachments/651445289781297183/712992320965836840/MenuAPI-dev-1.1.81-RedM.zip

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.

TomGrobbe avatar TomGrobbe commented on September 2, 2024

[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.

Artzalez avatar Artzalez commented on September 2, 2024

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
image

from menuapi.

TomGrobbe avatar TomGrobbe commented on September 2, 2024

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.

Artzalez avatar Artzalez commented on September 2, 2024

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 ?

from menuapi.

TomGrobbe avatar TomGrobbe commented on September 2, 2024

Yes, you can set it to -1 or something like that using:

MenuController.MenuToggleKey = (Control)-1;

from menuapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.