RE:CORD
REC_Journal

Installation

Installation, configuration, and usage for REC_Journal.
Added
Updated

Download the dependencies

GitHub - oxmysql

Download from here!!

Docs - REC_Library

Follow the installation

Docs - REC_Utils

Follow the installation

GitHub - ox_inventory

Download from here!!

Download main resource

Cfx Portal - REC_Journal

Download from your granted assets.

Place the REC_Journal folder from your distribution inside the server’s resources directory.

Import the SQL files

Apply the SQL below to your server database before starting the resource.

rec_journal.sql
CREATE TABLE IF NOT EXISTS `rec_journal` (
  `id` bigint(8) NOT NULL AUTO_INCREMENT,
  `citizenId` varchar(50) NOT NULL,
  `pages` longtext NOT NULL,
  `title` varchar(64) NOT NULL DEFAULT '',
  `author` varchar(64) NOT NULL DEFAULT '',
  `description` varchar(255) NOT NULL DEFAULT '',
  `signed` tinyint(4) NOT NULL DEFAULT 0,
  `signedAt` timestamp NULL DEFAULT NULL,
  `updatedAt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `citizenId` (`citizenId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

Register the items

Add the entries inside the table below to the existing return table in ox_inventory/data/items.lua. Do not replace the entire file or add a second return statement.

_install/ox_inventory_items.lua

--[[
    Definitions to append to ox_inventory/data/items.lua
    (keep the names in sync with config.items, the images go to ox_inventory/web/images/)
]]

return {
    ['rec_journal_unnamed'] = {
        label = '無名の本',
        weight = 200,
        stack = true,
        close = true,
        consume = 0,
        description = '何も書かれていない本。使うと書き込める。',
        client = {
            export = 'REC_Journal.useUnnamedJournal',
        },
    },

    ['rec_journal_signed'] = {
        label = '署名済みの本',
        weight = 200,
        stack = false,
        close = true,
        consume = 0,
        description = '署名された本。',
        client = {
            export = 'REC_Journal.useSignedJournal',
        },
    },
}

Copy the supplied _install/images/ files to ox_inventory/web/images/.

Check the web build

The resource needs web/build/index.html and its assets. If they are missing from the distribution or you change the UI source, install dependencies in web and run its package.json build script.

Copy and paste this on your server.cfg

  ensure REC_Journal

Start the dependencies before this resource.

Done

enjoy it !

©2026 RE:CORD Development Group. All rights reserved.