Studios
Meth Carhouse-3.jpg

Examples

SoonMeth CarQbox
PAGE 04 OF 06  ·  CONFIGURATION → EXAMPLES → TROUBLESHOOTINGdocs.glitchstudios.dev
Browse docs

Make cooks shorter and more forgiving#

Config.Cook.rounds = 5
Config.Cook.roundEvery = 60
Config.Cook.dailyCap = 8
Config.Cook.purityCap = 95

Limit cooking to the north of the map#

Config.Location.minY = 900.0
Config.Location.minRoadDistance = 40.0

minY is checked on the server. The road distance is measured by the client.

Add a vehicle that can cook#

Config.RVs = { 'journey', 'camper', 'my_custom_rv' }

Gate the Chemist behind a tablet job#

Config.Chemist.unlock = { jobId = 'my_tablet_job', count = 3 }
Config.Chemist.minTrust = 10

The gate reads the player's completion count through glitch-criminaltablet. Without that resource running, it is ignored.

Sell lab-grade methylamine at the Chemist#

Config.Chemist.shop[#Config.Chemist.shop + 1] = { item = 'methylamine_lab', price = 900, minTrust = 30, max = 5 }

The item must exist in ox_inventory.

Trim the plume to save GPU time#

for i = #Config.Smoke.parts, 7, -1 do
    table.remove(Config.Smoke.parts, i)
end

Hand out lab-grade methylamine from your own reward code#

exports.ox_inventory:AddItem(source, 'methylamine_lab', 5)

Test a full cook#

  1. Set Config.TestingMode = true and restart the resource.
  2. Park a Journey or Camper in the open and pick Cook in the back with ox_target.
  3. The cook ends after Config.TestingCookSeconds and hands out a tray.
  4. Set Config.TestingMode back to false.