You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to simplify all NUIs of all resources into one.
Exports (Client side)
add
Parameters
id: Unique ID of the DIV
Required values: string
payload: The content of the DIV
Required values: string
Example
exports['xnui']:add('hello_world', [[ <p>This is an example of a simple HTML page with one paragraph.</p>]])
edit
Parameters
id: Unique ID of the DIV
Required values: string
payload: The content of the DIV
Required values: string
create_if: Allow to create the DIV in case it doesn't exist
Required values: boolean: true/false/nil
Example
exports['xnui']:edit('hello_world', [[ <p>This is an example of a simple HTML page with two paragraph.</p> <p>This is an example of a simple HTML page with two paragraph.</p>]], true)
exports['xnui']:add(GetPlayers()[1], 'hello_world', [[ <p>This is an example of a simple HTML page with one paragraph.</p>]])
edit
Parameters
source: Player ID
Required values: any
-1 for all players
id: Unique ID of the DIV
Required values: string
payload: The content of the DIV
Required values: string
create_if: Allow to create the DIV in case it doesn't exist
Required values: boolean: true/false/nil
Example
exports['xnui']:edit(GetPlayers()[1], 'hello_world', [[ <p>This is an example of a simple HTML page with two paragraph.</p> <p>This is an example of a simple HTML page with two paragraph.</p>]], true)