Jump to content
Fivem-DEV.cz

[TEXT-UI] Změna text-ui z esx na ox


Freezysek
 Share

Recommended Posts

1) Verze
Půjdeme do esx_textui/TextUI.lua najdeme si  :

    exports['esx_textui']:showTextUI(message)


Následně esx_textui nahradíme ox_lib :

 

    exports['ox_lib']:showTextUI(message)
Taktéž by to mělo vypadat i u hideTextUI :

 

   exports['ox_lib']:hideTextUI()

2) Verze

Půjdeme do esx_textui/TextUI.lua najdeme si :

    SendNUIMessage({
        action = 'show',
        message = message and message or 'ESX-TextUI',
        type = type(typ) == "string" and typ or 'info'
    })


Následně toto celé vymažeme a nahradíme :
 

    exports['ox_lib']:showTextUI(message)

 

Taktéž by to mělo vypadat i u hideTextUI :
 

   exports['ox_lib']:hideTextUI()

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...