DirkScripts Logo

Login With FiveM

Login

DUI

ℹ️ Client Module - This can only be used on the client

lib.dui

Create a DUI browser instance that renders a web page onto a runtime texture.

lua
local dui = lib.dui({
    url = 'https://example.com',
    width = 512,
    height = 512,
    txn = 'my_texture',
    txd = 'my_texture_dict',
})

Options

FieldTypeRequiredDescription
urlstringyesURL to render
widthnumberyesTexture width in pixels
heightnumberyesTexture height in pixels
txnstringyesRuntime texture name
txdstringyesRuntime texture dictionary

Methods

lua
dui:setUrl(url)                    -- Navigate to a new URL
dui:sendMessage(data)              -- Send a table as JSON to the page
dui:sendMouseMove(x, y)            -- Simulate mouse movement
dui:sendMouseDown(button)          -- Simulate mouse button press
dui:sendMouseUp(button)            -- Simulate mouse button release
dui:sendMouseWheel(deltaX, deltaY) -- Simulate scroll
dui:remove()                       -- Destroy the DUI instance

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.