Skip to content

πŸ““ FX-NOTEBOOK ​

Advanced notebook system for RedM with page system, shared job notebooks, item-based notebooks, and full framework compatibility.


πŸ“¦ INSTALLATION ​

bash
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 ​

text
oxmysql

β€’ Required for database system β€’ Script will not work without it β€’ You can manage database using HeidiSQL / phpMyAdmin


πŸ—„οΈ SQL INSTALLATION ​

sql
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 ​

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 ​

lua
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 ​

lua
Config.Language = "en"
Config.DefaultPageCount = 10
Config.DefaultJobPageCount = 100

β€’ Language β†’ system language β€’ DefaultPageCount β†’ pages for normal notebook β€’ DefaultJobPageCount β†’ pages for shared notebook


✏️ EDIT SYSTEM ​

lua
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 ​

lua
Config.PaperItem = "paper"
Config.AddPaperCount = 2

β€’ Adds new pages to notebook β€’ Each paper gives extra pages β€’ Used for expanding notebook


lua
Config.CutePaperItem = "notepaper"

β€’ Extracts pages as item β€’ Allows sharing notes


πŸ“˜ NOTEBOOK ITEM ​

lua
Config.NotebookItem = "notebook"

β€’ Defines main notebook item β€’ Required to open system


🧠 JOB NOTEBOOK SYSTEM ​

lua
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 ​

lua
Config.UsableJobNotebooks = {
    sheriff_notebook = {
        name = "RhodesSheriff",
        job = { sheriff = 0 }
    }
}

β€’ Shared notebooks via item β€’ Job restricted usage β€’ Uses same database system


πŸ“ INTERACTION DISTANCE ​

lua
Config.OpenJoobBookDist = 1.1

β€’ Distance to open shared notebook β€’ Prevents long-distance access


πŸ–ΌοΈ DEFAULT SETTINGS ​

lua
Config.DefaultImage = "/ui/css/img/image.png"

β€’ Default notebook image β€’ Used if no custom image


πŸ›‘οΈ SECURITY SYSTEM ​

lua
Config.AntiRat = function(src,message)

β€’ Protects against malicious input β€’ Kicks players if exploit detected β€’ Prevents code injection


πŸ”” NOTIFY SYSTEM ​

lua
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

⚑ Premium RedM scripts crafted with performance & quality in mind.