How to install

Put Documents on your server in five minutes

1 min read · Updated Dec 3, 2026

A document editor with tables, pictures, page layout, printers and printed copies that are charged per page.

Requirements

  • ox_lib
  • oxmysql
  • TopXBridge started before this script
  • Qbox, QBCore or ESX

Steps

1. Put the folder in your resources

Copy TopXDocuments to your resources folder, next to TopXBridge.

2. Import the database

  • INSTALL/sql/topx_documents.sql

NOTE

The script does not create its tables by itself. Import the file once, in your database tool.

3. Add the items

The items of the documents and the printed papers are in INSTALL/ox_inventory/items.lua (ox_inventory) or INSTALL/qb-core/items.lua (qb-inventory). Copy the pictures of INSTALL/ox_inventory/images to the images folder of your inventory.

4. Start the script

cfg
ensure ox_lib
ensure oxmysql
ensure TopXBridge
ensure TopXDocuments

5. Give your admins the permission

cfg
add_ace group.admin command.printeradmin allow

Commands

  • /word opens the editor. /printeradmin opens the admin dashboard (ace permission command.printeradmin).

What is in the box

  • The folder TopXDocuments
  • The SQL file topx_documents.sql

Next

  • Config, every option explained
  • Exports, call the script from your own code
  • Events, react from your own code