nexquery / samp-textdraw-streamer

A simple plugin for sa-mp and open.mp to break the limits of textdrawings.
Apache License 2.0
34 stars 7 forks source link

Textdraw being displayed out of order #36

Open T3L4 opened 4 months ago

T3L4 commented 4 months ago

I am using the latest version of the include on a Linux Ubuntu-22.04-x86_64 and this problem doesn't always happen. In short, when a textdraw is shown, parts of it are out of order. All of them are there, but what should be in front sometimes is behind and gets hidden. I know that those hidden ones are still being shown because of some reports from players on my server who, when reporting the bug (because they have modifications that alter the transparency of the textdraws), can still see them, but they are behind. I don't know if I made myself clear, but some GTA graphic mods change the transparency and appearance of some textdraws, and that's why I conclude that all of them are shown, just out of order. So, the button to buy a vehicle at the dealership, which should be in front of all the others, sometimes when the player accesses the dealership, this button is hidden (behind some other textdraw, not being shown). I notice that the 'older' textdraws, that is, those that are higher up in the gamemode, do not have this problem. An example of this is our inventory, which never has this bug and always opens perfectly. Note: This bug happens sometimes with many or very few players on the server... And sometimes it is necessary to open the textdraw 1, 2, 3, 4 times for it to work perfectly.

Any idea how to fix it?

nexquery commented 4 months ago

This is the first time I have heard of this problem. There seems to be a problem for PreviewModels as well. I will probably rewrite the plugin in a different way to solve the issues.

T3L4 commented 4 months ago

Yes, I also have a big problem with PreviewModels. Every time it is necessary to hide to change a model that is already being shown and this impacts the entire operation.

Thank you for responding, I will wait for new updates.

GabrielLucioC commented 1 month ago

Any news? I'm also having the same problem... From what I understand, if I try to display it on the screen when it's already at the limit, the layer problem ends up occurring, the new layers start to fall behind the old ones.