Utilities

Library
Updated 2 months ago · v1.3.7

lib.showHelpNotification

Show a native GTA help notification (top-left black box).

lua
lib.showHelpNotification('Press ~INPUT_CONTEXT~ to interact')

lib.drawText3D

Draw floating text in the 3D world (must be called every frame).

lua
lib.drawText3D(x, y, z, scale, scale_factor, text)

lib.copyToClipboard

Copy a string to the player's clipboard.

lua
lib.copyToClipboard('Some text')

Open a URL in the player's browser.

lua
lib.openLink('https://example.com')

lib.getTheme

Get the current UI theme colours configured via convars.

lua
local theme = lib.getTheme()
-- theme.primaryColor, theme.secondaryColor, theme.logo

lib.testUIMode

Opens the built-in UI test bed (dev tool).

lua
lib.testUIMode()
Was this page helpful?
This page was last updated on 12 March 2026
DIRKSCRIPTS
All you need for your FiveM server.10% off your first order

Unsubscribe any time.

Copyright © 2026 DirkScripts. Not affiliated with or endorsed by Rockstar North or Take-Two Interactive.