Documentation Index
Fetch the complete documentation index at: https://docs.toine.me/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TS-Lib is designed to eliminate the headache of supporting multiple frameworks, inventories, garage systems, and key management scripts. Instead of cluttering your resources with endlessif/else checks, ts-lib handles it all under one unified TS namespace.
It is designed to be injected dynamically into any script, keeping your resource code clean, fast, and completely independent.
Download TS-Lib
Get the latest version of the resource.
Contribute to TS-Lib
Learn how to propose bridges, fixes and improvements.
Features
- Automated Framework Detection: Natively supports
qb-core,qbx_core,es_extended, andstandalone. It prioritizes the most modern framework available automatically or via forced config. - Unified Bridges:
- Framework: Native support for
qb-core,es_extended,qbx_core, andstandalone. - Garages: Native support for
qb-garages,esx_garage,vms_garagesv2,jg-advancedgarages, andstandalone. - Keys: Native support for
qb-vehiclekeys,qs-vehiclekeys, andstandalone. - Notify: Native support for framework notifications (QBCore/ESX) with unified API.
- Framework: Native support for
- Centralized Utils: Prints, debugs, and resource checks are completely centralized (
Utils.Print,Utils.DebugPrint,Utils.ErrorPrint,Utils.SuccessPrint). - Built-in UI helpers: Simple NUI-based subtitle, text UI, and text input helpers (
TS.Lib.Subtitle,TS.Lib.TextUI,TS.Lib.TextInput) that can also be called via exports. - Command System: Built-in command registration with type validation and permission support (
TS.Lib.Command.add). - Update Checker: Automatic update checking for Toine Scripts resources (
TS.CheckUpdate).
Installation
Integratingts-lib into your own scripts is incredibly simple.
- Place the
ts-libfolder in yourresourcesdirectory. - In the
fxmanifest.luaof the script that needs to usets-lib, add this single line to yourshared_scripts:
ts-lib will automatically boot up, detect the server’s framework, fetch the configurations, expose the TS namespace, and dynamically load the required modules.
Configuration
You can configure exactly which systemsts-lib uses via ts-lib/config.lua.