SCode StudiosSCodeDocs
Tebex Store

Installation

Installation of SCode Crafting Tablet

Supported Core

  • QBCore

  • ESX

Requirements

  • oxmysql (QBCore) or mysql-async (ESX)

  • screenshot-basic

  1. Drag and drop

    Put the scode-crafting folder into your resources folder.

  2. Import the database

    Run both files from the sql folder on your database: sql/scode_crafting.sql and sql/scode_chat.sql.

    SQL
    CREATE TABLE IF NOT EXISTS `scode_crafting_levels` (
        `id` int(11) NOT NULL AUTO_INCREMENT,
        `identifier` varchar(60) NOT NULL,
        `global_level` int(11) NOT NULL DEFAULT 1,
        `global_xp` int(11) NOT NULL DEFAULT 0,
        `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
        `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
        PRIMARY KEY (`id`),
        UNIQUE KEY `identifier` (`identifier`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
    
    CREATE TABLE IF NOT EXISTS `scode_chat_messages` (
        `id` INT AUTO_INCREMENT PRIMARY KEY,
        `sender_id` VARCHAR(50) NOT NULL,
        `sender_name` VARCHAR(255) NOT NULL,
        `sender_photo` VARCHAR(255) NOT NULL,
        `message` TEXT NOT NULL,
        `timestamp` BIGINT NOT NULL
    );
  3. Pick your framework

    Open config.lua and set Config.Framework to 'qbcore' or 'esx'.

    On ESX, also switch the lines in fxmanifest.lua: enable @es_extended/imports.lua and @mysql-async/lib/MySQL.lua, and comment out the QBCore lines (@qb-core/shared/locale.lua, @oxmysql/lib/MySQL.lua). Do the same in the dependencies block.

  4. Add the items

    The tablet needs the tablet item (or whatever you set in Config.RequiredItem). Every item used in a recipe, and every item that can be crafted, must exist in your inventory's item list. The default recipes use these materials:

    metal_parca, ahsap, yay, elektronik, kaucuk, kumas, alkol, antibiyotik, enjector, et, ekmek, domates, su, seker, kafein, kevlar, plastik, deri, metal_toka

    You can rename them or use your own items. Change the recipes in Config.Items to match.

  5. Start the resource

    Add it to your server.cfg after your framework and database resource:

    Code
    ensure scode-crafting

Item pictures shown on the tablet are loaded from ui/img/. To add a picture for a new item, put a .png file there and use its file name in the item's image field.

Last updated: December 6, 2026