FX-NOTEBOOK
Advanced notebook system for RedM with page system, shared job notebooks, item-based notebooks, and full framework compatibility.
3 min readupdated 3 Jun 2026
On this page 18
#๐ฆ INSTALLATION
bashensure fx-notebook
- Place the script inside
resources/fx-notebook - Add
ensure fx-notebookto yourserver.cfg - Restart your server
- Make sure
oxmysqlis started before this script
#โ๏ธ DEPENDENCIES
textoxmysql
- Required for database system
- Script will not work without it
- You can manage database using HeidiSQL / phpMyAdmin
#๐๏ธ SQL INSTALLATION
sqlCREATE TABLE IF NOT EXISTS `fx_notebook` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`job` longtext DEFAULT NULL,
`data` longtext DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ux_fx_notebook_name` (`name`)
);
- Stores all notebook data
nameโ unique notebook identifierdataโ saved pages and content- Required for system to work
#๐ฆ VORP ITEM INSTALL
sql('notebook', 'Notebook', ...),
('paper', 'Paper', ...),
('notepaper', 'Note Paper', ...),
('quill', 'Quill', ...)
- Required items for VORP
- notebook โ main item
- paper โ adds pages
- notepaper โ extracted page item
- quill โ required for editing
#๐ฆ RSG ITEM INSTALL
luanotebook = { name = 'notebook', label = 'Notebook', unique = true, useable = true },
paper = { name = 'paper', label = 'Paper', useable = true },
notepaper = { name = 'notepaper', label = 'Note Paper', useable = true },
quill = { name = 'quill', label = 'Quill', useable = true },
- Required items for RSG
- notebook should be unique
- quill required for editing system
#โ๏ธ BASIC SETTINGS
luaConfig.Language = "en"
Config.DefaultPageCount = 10
Config.DefaultJobPageCount = 100
- Language โ system language
- DefaultPageCount โ pages for normal notebook
- DefaultJobPageCount โ pages for shared notebook
#โ๏ธ EDIT SYSTEM
luaConfig.NeedQuill = true
Config.QuillItem = "quill"
Config.UsageQuillLimit = "20"
- Requires item to edit notebook
- Limits how many times quill can be used
- Prevents unlimited editing
#๐ PAGE SYSTEM
luaConfig.PaperItem = "paper"
Config.AddPaperCount = 2
- Adds new pages to notebook
- Each paper gives extra pages
- Used for expanding notebook
luaConfig.CutePaperItem = "notepaper"
- Extracts pages as item
- Allows sharing notes
#๐ NOTEBOOK ITEM
luaConfig.NotebookItem = "notebook"
- Defines main notebook item
- Required to open system
#๐ง JOB NOTEBOOK SYSTEM
luaConfig.Jobs = {
{
name = "BlackwaterSheriff",
job = false,
coords = vector3(...)
}
}
- Shared notebooks in world
- Can be restricted by job
- Players interact at location
#๐ ITEM-BASED SHARED NOTEBOOK
luaConfig.UsableJobNotebooks = {
sheriff_notebook = {
name = "RhodesSheriff",
job = { sheriff = 0 }
}
}
- Shared notebooks via item
- Job restricted usage
- Uses same database system
#๐ INTERACTION DISTANCE
luaConfig.OpenJoobBookDist = 1.1
- Distance to open shared notebook
- Prevents long-distance access
#๐ผ๏ธ DEFAULT SETTINGS
luaConfig.DefaultImage = "/ui/css/img/image.png"
- Default notebook image
- Used if no custom image
#๐ก๏ธ SECURITY SYSTEM
luaConfig.AntiRat = function(src,message)
- Protects against malicious input
- Kicks players if exploit detected
- Prevents code injection
#๐ NOTIFY SYSTEM
luaNotify({
text = "Page added",
type = "success"
})
- Framework-based notification system
- Supports VORP / RSG / REDEMRP
#โ ๏ธ IMPORTANT NOTES
- oxmysql must be running
- Notebook names must be unique
- Items must match config
- Quill required if enabled
- Paper required for adding pages
#๐จ COMMON MISTAKES
- Notebook not saving โ SQL not installed
- Cannot edit โ missing quill
- Pages not added โ wrong paper item
- Job notebook not opening โ wrong job config
- Duplicate name โ DB conflict
#๐ SUMMARY
FX-NOTEBOOK provides:
- Full notebook system
- Page management system
- Shared job notebooks
- Item-based notebooks
- Security protection system
- Full framework compatibility
ยฉ Fixitfy Development