tco-lib
The UI library behind every TCO script. It gives your server one consistent look for 3D prompts, NPC dialogue, notifications, progress bars and menus.
What you get
- 3D text: interaction text that sits on the object or NPC in the world
- Dialogue: NPC conversations with choices
- Notifications: toasts and alerts
- Progress bars: for crafting, searching, anything with a wait
- Menus: simple lists you can open from any script
- Sounds, UI scale and animation level are all adjustable
- English included, and adding another language is one file
Each part can be switched off on its own.
Requirements
- oxmysql
Install
-
Drop the
tco-libfolder intoresources. Keep the name as it is. -
Add it to
server.cfgafter oxmysql and before any other TCO resource:ensure oxmysql ensure tco-lib
Config
config/modules.luaturns each part on or off and sets language, scale and soundsconfig/has one file per part (prompts, dialogue, notify, progress, menu)locales/holds the translations
Links
- Preview: https://youtu.be/mTeyPUkPMAE
- Buy: https://tco-the-chosen-one.tebex.store/
- Docs: Welcome | TCO Docs
- Discord: TheChosenOne
Questions, bugs or ideas are welcome on Discord.
| Code is accessible | Partial |
| Subscription-based | No |
| Lines (approximately) | 4000 |
| Requirements | - |
| Support | Yes |
