π FX-NOTEBOOK β
Advanced notebook system for RedM with page system, shared job notebooks, item-based notebooks, and full framework compatibility.
π¦ INSTALLATION β
ensure fx-notebookβ’ Place the script inside resources/fx-notebook β’ Add ensure fx-notebook to your server.cfg β’ Restart your server β’ Make sure oxmysql is started before this script
βοΈ DEPENDENCIES β
oxmysqlβ’ Required for database system β’ Script will not work without it β’ You can manage database using HeidiSQL / phpMyAdmin
ποΈ SQL INSTALLATION β
CREATE 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 identifier β’ data β saved pages and content β’ Required for system to work
π¦ VORP ITEM INSTALL β
('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 β
notebook = { 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 β
Config.Language = "en"
Config.DefaultPageCount = 10
Config.DefaultJobPageCount = 100β’ Language β system language β’ DefaultPageCount β pages for normal notebook β’ DefaultJobPageCount β pages for shared notebook
βοΈ EDIT SYSTEM β
Config.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 β
Config.PaperItem = "paper"
Config.AddPaperCount = 2β’ Adds new pages to notebook β’ Each paper gives extra pages β’ Used for expanding notebook
Config.CutePaperItem = "notepaper"β’ Extracts pages as item β’ Allows sharing notes
π NOTEBOOK ITEM β
Config.NotebookItem = "notebook"β’ Defines main notebook item β’ Required to open system
π§ JOB NOTEBOOK SYSTEM β
Config.Jobs = {
{
name = "BlackwaterSheriff",
job = false,
coords = vector3(...)
}
}β’ Shared notebooks in world β’ Can be restricted by job β’ Players interact at location
π ITEM-BASED SHARED NOTEBOOK β
Config.UsableJobNotebooks = {
sheriff_notebook = {
name = "RhodesSheriff",
job = { sheriff = 0 }
}
}β’ Shared notebooks via item β’ Job restricted usage β’ Uses same database system
π INTERACTION DISTANCE β
Config.OpenJoobBookDist = 1.1β’ Distance to open shared notebook β’ Prevents long-distance access
πΌοΈ DEFAULT SETTINGS β
Config.DefaultImage = "/ui/css/img/image.png"β’ Default notebook image β’ Used if no custom image
π‘οΈ SECURITY SYSTEM β
Config.AntiRat = function(src,message)β’ Protects against malicious input β’ Kicks players if exploit detected β’ Prevents code injection
π NOTIFY SYSTEM β
Notify({
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
