NUI Client
NUI is a module to handle NUI interfaces
JO Functions
jo.nui.forceFocus()
Forces focus on a specific NUI interface
Syntax
lua
jo.nui.forceFocus(uiName)
Parameters
uiName
: string
The name of the NUI to focus on
Example
lua
jo.nui.forceFocus('my_crew_hud')
jo.nui.load()
Loads a NUI interface
Syntax
lua
jo.nui.load(uiName, url)
Parameters
uiName
: string
The name of the NUI to load
url
: string
The URL of the NUI to load
Example
lua
local uiName = "my_crew_hud"
local url = "nui://myResource/folder/index.html"
jo.nui.load(uiName)
jo.nui.resetFocus()
Resets the focus from any NUI interface
Syntax
lua
jo.nui.resetFocus()
Example
lua
jo.nuit.forceFocus('my_crew_hud')
Wait(10000)
jo.nui.resetFocus()