Skip to content

Installation

Fifteen minutes. Most of it is adding twelve items to your inventory.


You needWhy
ESX, QBCore or QBox, runningMoney, identifiers and callbacks. Detected on its own
oxmysql, runningEverything the script remembers is in your database
fmLibInventory add, remove and usable items go through it. The resource was built against fmLib v2.0.2
ox_target or qb-target (optional)Only if you want target interaction; drawtext needs nothing

Your download has two resources. Drop both into your resources, for example inside resources/[mic]/:

FolderWhat it is
mic_cryptoThe script
mic_crypto_propsThe rig, GPU, PSU and fan models, plus the warehouse laptop model

In server.cfg, below oxmysql and your framework, start fmLib, then mic_crypto_props, then mic_crypto — in that order, each on its own ensure line.

The framework is looked up the moment mic_crypto starts, so it has to be running already.

It worked when the server starts with no red mic_crypto line, and a yellow warehouse blip called Crypto Warehouse Shop shows on the map when you join.


Import install.sql (in the root of mic_crypto) once. It creates the five tables the script uses: wallets, warehouses, shared access, trades, and market prices.

The market table is also created on start if it is missing, but the other four are not — skip this step and nothing can be bought.

It worked when your database has five tables starting with mic_crypto_.


Every part of a rig is an item. Using one inside your warehouse puts it in your hands to carry.

ItemLabelWhat it does
mic_rigStandard 5-Slot RigThe frame. 5 GPU slots, 4 PSU slots, 8 fan slots
mic_gpu_badgerBadger Comm-100GPU · 80 W · 0.10 GH/s
mic_gpu_wiwangWiwang PC-GGPU · 180 W · 0.25 GH/s
mic_gpu_ecolaeCola OC EditionGPU · 320 W · 0.50 GH/s
mic_gpu_ifruitiFruit Pro MaxGPU · 550 W · 0.85 GH/s
mic_gpu_sprunkSprunk XtremeGPU · 1100 W · 1.50 GH/s
mic_psu_postupPostOP 500WPSU · provides 500 W
mic_psu_whizWhiz Wireless 850WPSU · provides 850 W
mic_psu_merryweatherMerryweather 1600WPSU · provides 1600 W
mic_fan_darrellDarrell Brother FanFan · draws 5 W
mic_fan_flyusFlyUS Aero FanFan · draws 10 W
mic_fan_atomicAtomic Vortex 120mmFan · draws 20 W

The ready-made definitions ship in mic_crypto/items/, and the icons in mic_crypto/items/images/:

InventoryDefinitions (mic_crypto/items/)Where they goIcons
ox_inventoryox_inventory.luaox_inventory/data/items.luaCopy items/images/*.png to ox_inventory/web/images/
QBCore / qb-inventoryqb-inventory.luaqb-core/shared/items.luaCopy them to qb-inventory/html/images/
ESX default inventoryesx_inventory.sqlImport it once on your database—

The entries in the two .lua files are commented out so they can sit in the folder harmlessly — remove the leading -- when you paste them.

It worked when you give yourself one of each and all twelve show in your inventory with their icon.


The framework needs nothing: ESX, QBCore or QBox is found on start. QBox is picked up through its QBCore compatibility — qbx_core provides qb-core — so there is nothing to set.

Interaction is one line, Config.Interaction in config/config.lua. It ships as ox_target. Set it to qb-target if that is what you run, or to drawtext for a plain Press E prompt with no target resource at all.


  1. Go to the dealer (the blip) and open the shop. Buy the Small Warehouse with cash or bank.
  2. Open the shop again and enter it from your list of warehouses.
  3. Use mic_rig. Walk to a white marker and press E. The rig appears on the floor.
  4. Use mic_psu_postup, walk to the rig and press E. Then do the same with mic_gpu_badger.
  5. Use the laptop in the warehouse. In Mining OS, drag some hashrate onto a coin.

It worked when the rig shows the PSU and the GPU you installed, and a few minutes later the coin’s balance has started to climb when you open the laptop again.

To leave, use the door marker you arrived at.


  • Replace the webhook URLs in config/webhook.lua with your own, or empty them to turn the logs off.
  • Set the prices in config/shop.lua and config/warehouses.lua to fit your economy — the defaults are a starting point, not a balance.
  • Choose the offline rate (Config.OfflineRate). At 1.0 an offline player earns exactly what an online one does.
  • Check Config.Locale is the language you want.