Allerek / MTA-RAGE-NativeUI

Recreation of GTA V's Native UI for MTA:SA
1 stars 0 forks source link

UI remains on the screen after restarting the resource #1

Open DenisGabriel45 opened 1 year ago

DenisGabriel45 commented 1 year ago

I just tried the new interface and I want to say that it is an improvement over the previous one. The problem I found is that after I restart a resource where I use this interface, it stays on my screen and another one appears. mta-screen_2023-09-23_10-48-13

Allerek commented 1 year ago

I just tried the new interface and I want to say that it is an improvement over the previous one. The problem I found is that after I restart a resource where I use this interface, it stays on my screen and another one appears. mta-screen_2023-09-23_10-48-13

You need to know that if you restart a resource where you use this library, the menu won’t be destroyed. You can do it yourself using a specific event within MTA.

https://wiki.multitheftauto.com/wiki/OnClientResourceStop

Allerek commented 1 year ago

I just tried the new interface and I want to say that it is an improvement over the previous one. The problem I found is that after I restart a resource where I use this interface, it stays on my screen and another one appears. mta-screen_2023-09-23_10-48-13

You need to know that if you restart a resource where you use this library, the menu won’t be destroyed. You can do it yourself using a specific event within MTA.

https://wiki.multitheftauto.com/wiki/OnClientResourceStop

This happens due to me trying to limit set/getElementData and elements are created just for reference for other functions

DenisGabriel45 commented 1 year ago

I just tried the new interface and I want to say that it is an improvement over the previous one. The problem I found is that after I restart a resource where I use this interface, it stays on my screen and another one appears. mta-screen_2023-09-23_10-48-13

You need to know that if you restart a resource where you use this library, the menu won’t be destroyed. You can do it yourself using a specific event within MTA. https://wiki.multitheftauto.com/wiki/OnClientResourceStop

This happens due to me trying to limit set/getElementData and elements are created just for reference for other functions

Oh, I understand now

ClassicSenior commented 10 months ago

Or you just restart the Rage NativeUI module with it ;)