Overview
TC UI
The interface library shared by every TC script, modelled on ox_lib.
LibraryNUILua
#What is TC UI for?
tc-ui is the interface library common to every TC script. It works like ox_lib: a Lua import (@tc-ui/init.lua), exports, and a NUI kit (CSS + JS) that any page can load.
It gives all scripts the same theme and behaviour (notifications, progress bars, mini-games…). You can also use it in your own scripts.
Hard dependency
Every TC script depends on tc-ui. It must start before them.
#Features
- Notifications: success, error, warning, information.
- Progress bars, blocking or driven by the script, with animation and cancellation.
- Mini-games on the keyboard (precision, sequence) and mouse-driven bomb modules (wires, button, braille, symbols, switches, password, sound).
- Blocking keypad with server-side validation.
- Consent prompt “Accept / Refuse” with a countdown.
- Help HUD, native GTA help text, central crosshair, hints anchored in the world.
- Interaction points (
tc.point): “key + text” prompt without needing a target system. - Dialogs: confirmation and forms (text, number, list, checkbox, slider, colour).
- NUI kit:
--tc-*CSS variables, components (tablet, drawer, table, modal…) and JS helpers to build your own interface.
#Resources that use it
| Resource | What it uses |
|---|---|
| tc-mechanic | Full kit, progress, mini-games, HUD |
| tc-divisions | Kit, keypad, tc.ui |
| tc-forensic | Kit, progress, anchored hint, consent prompt |
| tc-contextmenu | Kit, tc.ui (management panel) |
| tc-banana_defuse | CSS + JS kit |
| tc-codestock, tc-logs, tc-motel, tc-handling | Kit and tc.ui |
#Pages
InstallationStart-up and import in your manifest.Lua APIEvery function and its options.NUI kitBuild your own page with the kit.TroubleshootingFrequent errors.