DirkScripts
Docs
Utilities
#lib.showHelpNotification
Show a native GTA help notification (top-left black box).
lualib.showHelpNotification('Press ~INPUT_CONTEXT~ to interact')
#lib.drawText3D
Draw floating text in the 3D world (must be called every frame).
lualib.drawText3D(x, y, z, scale, scale_factor, text)
#lib.copyToClipboard
Copy a string to the player's clipboard.
lualib.copyToClipboard('Some text')
#lib.openLink
Open a URL in the player's browser.
lualib.openLink('https://example.com')
#lib.getTheme
Get the current UI theme colours configured via convars.
lualocal theme = lib.getTheme() -- theme.primaryColor, theme.secondaryColor, theme.logo
#lib.testUIMode
Opens the built-in UI test bed (dev tool).
lualib.testUIMode()
