Set a NUI to background

Hi !

I want to display a NUI when a menu created with NativeUILua is opened. But do you know how to make the UI appear behind the menus? (or conversely, so that the menu is displayed in the foreground?)

Thanks in advance,
Dylan

i think you cant why the NativeUi menus are scaleforms and are rendered behind the nuis

Use DUI instead and then draw the texture using DRAW_SPRITE or similar.

Do you have an example of how can i use it ? (in my case for example)

How would they click on buttons and such?

For now, SendDuiMouseDown - FiveM Natives @ Cfx.re Docs and the likes. Intent exists to add a command to set focus to a DUI instance for use cases like this.

1 Like