DUI rotation bug

I have some problem with my dui, on my screen i see it upside down but others people see it normal O_o
image

1 Like

I replied to your friend on discord, tell him to answer me here, it will be more practical. With how much people did you test this ?

I’m not very familiar with DUI but I may be able to help you.

Please provide example code so we can have a better idea of what is happening.

I tried my own code, i got the rotation issue so i was like “oh my code has a problem i’ll try a shared code” so i tried a fivem code (https://github.com/throwarray/gtav-rendertarget/blob/master/youtube/client.lua) and same :expressionless:

Sorry for the delay. Its very odd as I run the same code (though I have written it in C#) and cannot create the same issue. Maybe try clearing your FiveM Cache and try again?

i’ll try it

check you offset part

It’s still an issue, will this ever get fixed?
Only happning for some players.

Not a fix, but a workaround: flipping the DUI on purpose seems to resolve the issue for the specific players who have this issue.

For example, this is how I draw my DUI:

API.DrawInteractiveSprite($"{RenderTarget}-{Guid}", $"{RenderTarget}-{Guid}-SA", 0.5f, 0.5f, 1f, inverse ? -1f : 1f, 0.0f, 255, 255, 255, 255);

Note, the inverse ? -1f : 1f - if the player has entered a command indicating they have the DUI Bug, then the script will flip the DUI just for them :+1: