Config
Every option of config.lua for Documents
2 min read · Updated Dec 3, 2026
The file is TopXDocuments/config.lua. Save it and restart the script. Everything else (places, shops, rewards, prices) is set in game with the admin dashboard.
TIP
A number option set to 0 or false means no limit, unless the note of the option says otherwise.
Options
| Option | Default | What it does |
|---|---|---|
Accent | '#327bf7' | - |
ChargeAccount | 'both' | money used for payments: 'cash', 'bank' or 'both' (cash first, then bank) |
Command | 'word' | chat command that opens the editor (false to disable) |
Keybind | 'F7' | default key, players can change it in Settings > Key Bindings > FiveM (false to disable) |
MaxLength | 40000 | longest document, in characters of HTML. 0 or false: no limit |
MaxDocuments | 60 | documents one player can keep. 0 or false: no limit |
AdminCommand | 'printeradmin' | needs: add_ace group.admin command.printeradmin allow |
The whole file
Config = {}
Config.Accent = '#327bf7'
Config.ChargeAccount = 'both' -- money used for payments: 'cash', 'bank' or 'both' (cash first, then bank)
-- Document editor
Config.Command = 'word' -- chat command that opens the editor (false to disable)
Config.Keybind = 'F7' -- default key, players can change it in Settings > Key Bindings > FiveM (false to disable)
Config.EditorJobs = {} -- jobs that can use the editor, empty = everyone
Config.MaxLength = 40000 -- longest document, in characters of HTML. 0 or false: no limit
Config.MaxDocuments = 60 -- documents one player can keep. 0 or false: no limit
-- Inventory items (added to your inventory's items file, see the docs)
Config.Items = {
document = 'document', -- saved documents, holds the document id in its metadata
paper = 'paper', -- printed papers, hold a printed copy in their metadata
blank = 'blank_paper', -- empty paper. Printers that use paper need it loaded before they print (set per printer in the printer admin menu)
}
-- Printers, editor places, printer props, distance, print time, price, copies and image hosts
-- are all set in game with this command (kept in the database).
Config.AdminCommand = 'printeradmin' -- needs: add_ace group.admin command.printeradmin allow