Home › Documentation › 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.
| Option | Default | Description |
|---|---|---|
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.AutoCheckSQL | true | Auto-creates the database table on start. Set false to manage the schema manually |
Config.Debug | false | Enables debug output for the resource |
The mission-giver ped spawned at the lab.
Config.NPC = {
model = 'S_M_M_Trucker_01',
coords = vec4(1702.5066, -1547.3065, 112.6472, 254.4936)
}| Field | Type | Description |
|---|---|---|
model | string | Ped model name |
coords | vector4 | Spawn position and heading |
Spawn points for the forklift and trailer used during the job.
Config.VehicleSpawns = {
forklift = {
coords = vec4(1713.5016, -1542.6887, 112.0990, 50.4839)
},
trailer = {
coords = vec4(1728.1082, -1576.5702, 112.5942, 174.1927)
}
}| Field | Type | Description |
|---|---|---|
forklift.coords | vector4 | Forklift spawn position and heading |
trailer.coords | vector4 | Trailer spawn position and heading |
The drop-off point and the reward granted on completion.
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 }
}
}
}| Field | Type | Description |
|---|---|---|
coords | vector4 | Delivery drop-off location |
reward.type | string | 'money', 'item', or 'custom' |
reward.method | string | Only for type = 'money': 'cash' or 'bank' |
reward.amount | number | Only for type = 'money': amount paid |
reward.items | table[] | 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.
Selects which resource powers each integration. Every option accepts 'auto' (default), 'custom', or a direct resource name.
BridgeConfig = BridgeConfig or {
Framework = 'auto',
Inventory = 'auto',
Fuel = 'auto',
HelpText = 'auto',
Notify = 'auto',
Target = 'auto',
VehicleKey = 'auto',
ProgressBar = 'auto',
DebugLevel = 0,
}| Option | Description |
|---|---|
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 |
DebugLevel | 0 = none · 1 = warnings · 2 = full bridge logs |
See Dependencies for the full list of supported resources per module.