NUI Cursor with FX


#1

Hi everyone,

I’m making a NUI but I’m a bit new with this technology :smiley:
I want to know how to display the Native Cursor ? Do we have to use the old system with ui-mouse-example ?
I’ve already put SetNuiFocus(true,true) https://runtime.fivem.net/doc/reference.html#_0x5b98ae30 but nothing shows up…

Thx


#2

Maybe want to look at this native:

https://runtime.fivem.net/doc/reference.html#_0xAAE7CE1D63167423


#3

The cursor is shown, but under the UI


#4

Oh thats rather inconvient, maybe it has something to do with the calling order? Show NUI -> Show Cursor or Show Cursor -> Show NUI.
Unlikely, I bet there is another native that takes care of sorting orders. Can’t find any in the docs though.

Im don’t have experience with this yet :frowning:


#5

I finaly manage to show the cursor with hover effect and all that stuff with SetNuiFocus(true,true) when the Nui is active


#6

and how did you do that?