OrigenNetwork
Docs

Installation · origen_meth_lab

Follow these steps to install origen_meth_lab on your server.


1. Add the resource

Drop the origen_meth_lab folder into your resources directory (for example inside an [origen] folder) and add it to your server.cfg:

cfg
ensure origen_meth_lab

Make sure it starts after ox_lib, oxmysql, your framework, and your inventory. See Dependencies.


2. Database

The resource uses a single table to persist storage shelf slots.

sql
CREATE TABLE IF NOT EXISTS `origen_methlab_storage` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `slot_index` INT(11) NOT NULL,
    `occupied` TINYINT(1) NOT NULL DEFAULT 0,
    `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`),
    UNIQUE KEY `idx_slot_index` (`slot_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

The SQL file ships at [installation]/database.sql.

With Config.AutoCheckSQL = true (default) the table is created automatically on first start, so you do not need to import the SQL manually. Set it to false if you prefer to manage the schema yourself.


3. Map prop

The lab ships with a streamed prop used for the storage shelves. It is loaded automatically through the manifest — no extra setup required.

lua
data_file 'DLC_ITYP_REQUEST' 'stream/origen_meatboxsml.ytyp'

The stream/ folder contains origen_meatboxsml.ydr and origen_meatboxsml.ytyp. Keep them in place.


4. Configure

Open config/_main.lua to set the NPC, vehicle spawns, delivery point, and reward, and config/bridge.lua to pick your framework, inventory, and other providers. See Configuration.