sc_textUI by ScubeScripts is a framework-independent FiveM text prompt resource. The reviewed version 1.0.0 uses ui/textui.html and declares no ESX or QBCore dependency. Its source was checked at commit e97687f41b97895464522842927fe230e28c1822.
Use the documented interface
Client scripts call exports.sc_textUI:showUI(key, message) and exports.sc_textUI:hideUI(). Server scripts use TriggerClientEvent to send sc_textUI:showUI to playerId with key and message, or sc_textUI:hideUI to playerId. The NUI assigns the key and message as textContent. This displays a prompt; your own interaction code must implement the action and any required server-side permission checks.
Install and integrate one interaction first
Place sc_textUI in resources and add ensure sc_textUI before resources that call its exports. Keep fxmanifest.lua directly inside the resource folder. The README includes an optional ESX TextUI replacement example; back up the original integration before adapting it. Keep a single owner for the visible prompt so one resource does not hide another resource’s message.
Hide stale prompts and test longer translations
Call hideUI when the player leaves the interaction, dies, teleports or changes state, and handle resource stop and reconnect cleanup in the integration. Test acceptance of long translated messages, UI scaling and different screen sizes. The README’s per-frame marker loop is example integration code, not an inherent performance requirement. Profile your actual interaction loop before making performance claims.
Source and license
The repository includes GPL-3.0. Keep its license and notices with redistributed code and review the license before distributing modifications. This review confirms the documented interface and inspected files; it is not a gameplay benchmark or a guarantee of compatibility with every UI integration.