3D Text UI
⚙️ Data Structures
options = {
{
label = "PICK UP", -- The action text displayed
key = 38, -- The FiveM Control Index (38 is E)
keyName = "E", -- (Optional) The visual key name. Falls back to Lib47.Keys if omitted.
action = function() -- The function triggered upon interaction
print("Item picked up!")
end,
isVisible = function() -- (Optional) Determines if the option shows up at all
return true
end,
canInteract = function() -- (Optional) If false, the option is visible but disabled/grayed out
return true
end
},
{
label = "INSPECT",
key = 74, -- 74 is H
keyName = "H",
hold = 3, -- (Optional) Seconds button must be held to trigger
action = function()
print("Inspected!")
end
}
}🛠️ API Reference
📝 Code Examples
Last updated