DirkScripts Logo

Login With FiveM

Login

πŸ“š Dirk Lib
β€Ί
Modules
β€Ί
ui
β€Ί

Key Prompts

Key Prompts

lib.showKeys

lua
lib.showKeys({
    position = 'bottom-right',
    direction = 'column',
    inputs = {
        { label = 'Open Trunk', key = 'E', icon = 'car', action = function() TriggerEvent('vehicle:openTrunk') end, canInteract = function() return true end },
        { label = 'Lock Vehicle', key = 'L', icon = 'lock', action = function() TriggerEvent('vehicle:toggleLock') end },
    },
})
FieldTypeRequiredDescription
positionstring | tableyesOverlay position
directionstringnorow, column, row-reverse, column-reverse
inputstable[]yesKey prompt entries

Input Entry Fields

FieldTypeRequiredDescription
keystringyesControl key name/code (string form)
labelstringyesPrompt label
iconstringyesPrompt icon
actionfunctionnoCallback when pressed
clientEventstringnoTrigger client event when pressed
serverEventstringnoTrigger server event when pressed
exportstringnoCall an export when pressed
argstablenoArguments for event/export
delaynumbernoHold/delay value
canInteractfunctionnoDynamically hide/disable input

lib.hideKeys

lua
lib.hideKeys()

lib.isKeysOpen

lua
local open = lib.isKeysOpen()

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.