# ylean\_cryptosystem

## 1. Setup

Import `yl.sql` file into your database

**\[IMPORTANT]** If you are using other targeting resource than qb-target remember to change export in `client.lua`!

## 2. config.lua

```lua
Ylean = {}

Ylean.Blip = {
    name = "Bitcoin Center",
    type = 607
}

Ylean.ASIC_CFG = {
    offline_income = false, --IMPORTANT [!]
    miner_price = 50000,
    upgrade_price = 15000,
    max_level = 20,
    increase_per_level = 10 -- 10MH/h = 0.05 BTC
}

Ylean.ASIC = {
    model = "prop_cs_tv_stand",
    coords = vector4(705.83, -963.59, 29.4, 51.17),
    text_coords = vector4(706.1, -963.77, 31.21, 47.54)
}


Ylean.Pc = {
    model = "prop_dyn_pc_02", 
    coords = vector4(706.42, -967.66, 30.35, 181.69),
    display_model = "v_serv_ct_monitor04",
    display_coords = vector4(706.95, -967.7, 30.41, 185.75)
}
```

`offline_income` - if set to true all (offline and online) players will receive payment.

`increase_per_level` - 10 MH/s =  0.05 BTC per hour. If you set the value of this variable to 20, then players will receive an additional 0.1 BTC per hour with every upgrade.

## 3. How to change Bitcoin prices on a chart

Whole chart is located in `nui/script.js` - **lines: 146 to 262**
