OrigenNetwork
Docs

Configuration · origen_meth_lab

The resource exposes two configuration files:

  • config/_main.lua — gameplay settings (NPC, vehicles, delivery, reward).
  • config/bridge.lua — provider selection for the bridge layer.

Both are excluded from escrow and safe to edit.


config/_main.lua

General

OptionDefaultDescription
Config.Language'en'Locale to use ('en', 'es'). Loads from locales/{lang}.json
Config.InteractionMode'drawtext'How players interact with the NPC. 'drawtext' shows a TextUI prompt with [E]; 'target' uses your target resource
Config.AutoCheckSQLtrueAuto-creates the database table on start. Set false to manage the schema manually
Config.DebugfalseEnables debug output for the resource

NPC

The mission-giver ped spawned at the lab.

lua
Config.NPC = {
    model = 'S_M_M_Trucker_01',
    coords = vec4(1702.5066, -1547.3065, 112.6472, 254.4936)
}
FieldTypeDescription
modelstringPed model name
coordsvector4Spawn position and heading

Vehicle spawns

Spawn points for the forklift and trailer used during the job.

lua
Config.VehicleSpawns = {
    forklift = {
        coords = vec4(1713.5016, -1542.6887, 112.0990, 50.4839)
    },
    trailer = {
        coords = vec4(1728.1082, -1576.5702, 112.5942, 174.1927)
    }
}
FieldTypeDescription
forklift.coordsvector4Forklift spawn position and heading
trailer.coordsvector4Trailer spawn position and heading

Delivery

The drop-off point and the reward granted on completion.

lua
Config.Delivery = {
    coords = vec4(236.7335, -3321.6990, 5.7939, 179.0640),
    reward = {
        type = 'money', -- 'money' or 'item' or 'custom'
        method = 'cash', -- Only used if type is 'money': 'bank' or 'cash'
        amount = 50000, -- Amount only used if type is 'money'
        items = {
            { name = 'sandwich', amount = 1 }
        }
    }
}
FieldTypeDescription
coordsvector4Delivery drop-off location
reward.typestring'money', 'item', or 'custom'
reward.methodstringOnly for type = 'money': 'cash' or 'bank'
reward.amountnumberOnly for type = 'money': amount paid
reward.itemstable[]Only for type = 'item': list of { name, amount } to give

When reward.type = 'custom', no money or items are granted automatically. Instead the Custom.OnCompleteDelivery(source) hook is called so you can implement your own logic. See Custom.


config/bridge.lua

Selects which resource powers each integration. Every option accepts 'auto' (default), 'custom', or a direct resource name.

lua
BridgeConfig = BridgeConfig or {
    Framework   = 'auto',
    Inventory   = 'auto',
    Fuel        = 'auto',
    HelpText    = 'auto',
    Notify      = 'auto',
    Target      = 'auto',
    VehicleKey  = 'auto',
    ProgressBar = 'auto',
    DebugLevel  = 0,
}
OptionDescription
Framework'auto', 'custom', 'qb-core', 'qbx_core', 'es_extended'
Inventory'auto', 'custom', or one of the supported inventories
Fuel'auto', 'custom', or one of the supported fuel scripts
HelpText'auto', 'custom', or one of the supported TextUI scripts
Notify'auto', 'custom', or one of the supported notify scripts
Target'auto', 'custom', 'ox_target', 'qb-target', 'sleepless_interact'
VehicleKey'auto', 'custom', or one of the supported key scripts
ProgressBar'auto', 'custom', or one of the supported progress bar scripts
DebugLevel0 = none · 1 = warnings · 2 = full bridge logs

See Dependencies for the full list of supported resources per module.