
mz_textui
A lightweight and modern TextUI resource for FiveM.
Designed for simple interaction prompts with support for hold-to-interact mechanics, inspired by the interaction style commonly seen in games like RDR2.GTA6
Download & Source Code
Features
- Modern and lightweight TextUI
- Optimized performance — 0.00ms both idle and active
- Support for multiple keys
- Hold-to-interact support
- Configurable hold duration
- Multiple keys can be displayed in one prompt
- Only one key can be actively held at a time
- Custom control mapping
- Event support when a hold interaction is completed
- Simple exports and API
Example
exports.mz_textui:Show({
text = '[E] Open Garage',
hold = 1000
})
Multiple Keys
exports.mz_textui:Show({
text = '[E] Open Garage [F] Manage Garage',
hold = 1000,
controls = {
{
key = 'E',
event = 'garage:open'
},
{
key = 'F',
event = 'garage:manage'
}
}
})
Available Exports
exports.mz_textui:Show(options)
exports.mz_textui:DrawText(text, hold, duration)
exports.mz_textui:HideText()
exports.mz_textui:IsHolding()
exports.mz_textui:GetState()
Hold Complete Event
AddEventHandler('mz_textui:holdComplete', function(data)
print(data.key)
end)
A simple, lightweight and reusable TextUI solution for FiveM resources.
screenshot
Our Links
- Store:https://muziscripts.com
- Discord:MZ Studio
| Code is accessible | Yes |
| Subscription-based | No |
| Lines (approximately) | ~400 |
| Requirements | None |
| Support | Yes |



