Requirements#
| Server | FiveM server artifact with OneSync and Lua 5.4 |
| Library | ox_lib (required) |
| Framework | One of qbx_core (Qbox), qb-core or es_extended |
| Database | None. The library creates no tables and needs no SQL. |
| Optional inventory | ox_inventory, qb-inventory, or the ESX inventory |
| Optional target | ox_target, qb-target or bt-target |
| Optional door lock | ox_doorlock, qb-doorlock or esx_doorlock |
| Optional notifications | glitch-notifications |
| Optional XP | glitch-xpSystem or pickle_xp |
| Cutscene tools only | oxmysql, glitch-mapHandler, glitch-appearance, glitch-photos, glitch-admin and glitch-cloudsLoading. Each one is checked at run time and skipped when missing. |
Everything marked optional is detected while the server runs. Install the ones your server uses and the library skips the rest.
The package was tested with qbx_core 1.24.0, ox_lib 3.40.0, ox_inventory 2.48.0 and ox_target 1.17.2.
Installation steps#
- Download glitch-abstraction and extract the complete resource, including the
htmlfolder. - Name the folder
glitch-abstraction(remove any-mainsuffix) and place it in yourresourcesfolder. The name is case sensitive on Linux. - No items, SQL or images are needed.
- Add it to
server.cfgafter ox_lib and your framework, and before every resource that uses it:
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure ox_target
ensure glitch-abstraction
ensure your-script-that-uses-it
- Restart the server. Set
Config.Debug = trueonce to see which framework and modules were picked. With it off the console stays quiet unless no framework is found. - Optional: if you use the cutscene browser, give your staff the ACE that
Config.Cutscenes.Admin.Acenames:
add_ace group.admin admin allow
add_ace group.founder founder allow
The files are open on purpose. The adapter modules are read with LoadResourceFile, which cannot read escrowed files.
Updating#
Back up shared/config.lua, replace the rest of the folder, then merge any new keys into your config. Restart the resource, then restart every resource that depends on it so they fetch the new table. Keep the manifest load order as shipped. New shared files must be listed by name. Do not use a glob, because a second run of shared/config-core.lua would wipe the library table.
Stuck on a step?Ask in the Discord →