matsn0w / MISS-ELS

Server-sided ELS for FiveM with custom patterns per vehicle, custom sirens, indicator control and more!
https://matsn0w.github.io/MISS-ELS
17 stars 13 forks source link

Statics menu only opens after restarting the resource #63

Closed PerVanHassel closed 2 years ago

PerVanHassel commented 2 years ago

Sometimes when using the ELS, it bugs and the U menu doesn't open. but when i restart the script then it works. it doenst show a error in console iether

matsn0w commented 2 years ago

Hi, thank you for reporting this!

I am experiencing this myself in our server, but not on my local test server. So I thought this problem was with our server, but apparently this is more common. I'm going to mark this as a bug and find out what's causing it. I'll get back to you later!

PerVanHassel commented 2 years ago

Sometimes the whole Els just stops too, thanks for looking into it btw!

matsn0w commented 2 years ago

@PerVanHassel here's a small update, I figured out that this is probably caused by a mismatch between multiple NativeUI installations.

In our server, we had a script that served a copy of NUI. Removing this and just relying on the standalone NUI resource fixed the issue for us.

Do you have any other scripts running NUI?

PerVanHassel commented 2 years ago

We have a home menu running on NativeUI yes

matsn0w commented 2 years ago

Ok. You might wanna try disabling that - does that make any difference?

PerVanHassel commented 2 years ago

The whole home menu or NativeUI

PerVanHassel commented 2 years ago

If i stop the home menu, the static menu indeed works better. Is there a way to fix that i dont have to stop the home menu? So that i can run 2 resource's with NativeUI and not have the ELS buggin

matsn0w commented 2 years ago

Not sure why it is not working properly, I guess there's an issue with running multiple 'instances' of NUI. I managed to fix it by removing the hard dependency from the other menu and instead rely on a standalone installation of NUI.

What menu is it? Did you write it yourself?

matsn0w commented 2 years ago

Marking this issue as 'invalid' as it seems that this issue is not caused by this resource.