Oilwell_config = Oilwell_config or {}

Oilwell_config.inventory_max_size = 41
Oilwell_config.AnimationSpeedDivider = 20 -- higher value => less animation speed at 100%
Oilwell_config.actionSpeed = 5 -- how fast oilpump actionspeed is updated to new action speed / just visual
Oilwell_config.fuel_script = 'LegacyFuel'
Oilwell_config.fuel_script = 'keep-fuel'

Oilwell_config.Settings = {
     size = {
          oilwell_storage = 10000,
     },
     oil_well = {
          blip = {
               sprite = 436,
               colour = 5,
               range = 'short',
               -- CITIZENID | OILWELLNAME | DB_ID_RAW | TYPE | OILWELL_HASH
               -- if scirpt detect this keywords inside string it will replace them.
               name = 'Oil DB_ID_RAW'
          }
     },
     capacity = {
          oilbarell = {
               size = 5000, -- gal
               cost = 500
          },
          truck = {
               size = 5000, -- gal placeholder
               cost = 25000
          }
     }
}

Oilwell_config.locations = {
     storage = {
          position = vector4(1710.67, -1662.0, 110.8, 325.22),
          rotation = vector3(0.0, 0.0, 0.0),
          model = 'prop_storagetank_06',
          blip = {
               sprite = 478,
               colour = 5,
               range = 'short',
               name = 'Oil TYPE'
          }
     },
     distillation = {
          position = vector4(1674, -1650.5, 110.2, 10),
          rotation = vector3(0.0, 0.0, 10.0),
          model = 'prop_gas_tank_01a',
          blip = {
               sprite = 467,
               colour = 5,
               range = 'short',
               name = 'Oil TYPE'
          }
     },
     blender = {
          position = vector4(1737.56, -1635.58, 110.88, 190),
          rotation = vector3(0.0, 0.0, 190.0),
          model = 'prop_storagetank_01',
          blip = {
               sprite = 365,
               colour = 5,
               range = 'short',
               name = 'Oil TYPE'
          }
     },
     barrel_withdraw = {
          position = vector4(1712.23, -1622.53, 111.48, 214.88),
          rotation = vector3(0.0, 0.0, 0.0),
          model = 'imp_prop_groupbarrel_03',
          blip = {
               sprite = 549,
               colour = 5,
               range = 'short',
               name = 'Oil TYPE'
          }
     },
     -- placeholder
     -- oil_wellhead = {
     --      position = vector4(1480.9, -1850.85, 70.1, 246.85),
     --      rotation = vector3(0.0, 0.0, 0.0),
     --      model = 'prop_oil_wellhead_01',
     -- },
     toggle_job = {
          position = vector4(1703.5, -1635, 111.49, 100.11),
          rotation = vector3(0.0, 0.0, 100.0),
          model = 'xm_base_cia_server_02',
          blip = {
               sprite = 306,
               colour = 5,
               range = 'short',
               name = 'Oil TYPE'
          }
     },
     crude_oil_transport = {
          position = vector4(1220.0, -2986.0, 4.7, 180),
          rotation = vector3(0.0, 0.0, 180.0),
          model = 'prop_oil_wellhead_04',
          blip = {
               sprite = 306,
               colour = 5,
               range = 'short',
               name = 'Oil TYPE'
          }
     }
}

Oilwell_config.Delivery = {
     refund = 20000,
     TriggerLocation = vector3(1737.45, -1691.28, 112.73),
     SpawnLocation = vector4(1741.19, -1694.61, 112.73, 125.57),
     DinstanceToTrigger = 5.0,
     vehicleModel = 'rallytruck'
}

Oilwell_config.Transport = {
     max_stock = 20000, --gal per type
     prices = {
          crudeOil = 3,
          gasoline = 7,
          fuel_oil = 3.5
     },
     barell_refund = 200,
     duration = 5 --sec
}

-- Make separate file for locale
Oilwell_config.Locale = {
     mail = {
          sender = 'Oil Company',
          subject = 'Payment Receipt',
          message = 'Dear %s %s, <br /><br />This email is a copy of Payment Receipt.<br />Your payment was: <strong>%.2f$</strong><br />Sold amount : <strong> %d (gal)</strong><br />Barrel refund : <strong> %d$</strong>'
     },
     info = {
          mr = 'Mr.',
          mrs = 'Mrs.',
     }
}

Oilwell_config.TruckWithdraw = {
     npc = {
          model = 'S_M_Y_Construct_02',
          variant = {},
          coords = vector4(1737.49, -1691.76, 111.73, 116.07),
          scenario = 'WORLD_HUMAN_CLIPBOARD',
          flag = 1,
          freeze = true,
          invincible = true,
          blockevents = true,
     },
     box = {
          minz_offset = -1,
          maxz_offset = 1.75,
          w = 1.5,
          l = 2.35,
          heading = 160.0
     }
}

-- prop_barrel_exp_01a.yft ron
-- prop_barrel_exp_01b.yft glob oil

-- prop_oil_wellhead_01
-- prop_oilcan_02a

-- vector3(998.08, -1859.08, 30.89)
