LuxuCM - Crypto Mining
Currently Disabled features:
- Disasters
Dependencies
- LuxuModules (included in your purchase)
- ox_lib
- oxmysql
- onesync infinity enabled
- Inventory that uses metadata (for cryptostick to work)
❌ Onesync Legacy will not work!
Installation
- Download and Install LuxuModules
- Download and Install LuxuCM in your resources folder
- Create Items
- Execute the SQL code inside the SQL folder
- Finished!
Rewards Simulator: https//luxu.gg/luxucm
Items Setup
- ox_inventory
['asic_miner_fan'] = { ['name'] = 'asic_miner_fan', ['label'] = 'Asic Miner Fan', ['weight'] = 10, ['stack'] = true, ['description'] = 'For crafting asic miners' }, ['asic_miner_hashing_board'] = { ['name'] = 'asic_miner_hashing_board', ['label'] = 'Hashing Board', ['weight'] = 10, ['stack'] = true, ['description'] = 'For crafting asic miners' }, ['miner_pcb'] = { ['name'] = 'miner_pcb', ['label'] = 'Miner PCB', ['weight'] = 10, ['stack'] = true, ['description'] = 'For crafting asic miners' }, ['miner_s9shell'] = { ['name'] = 'miner_s9shell', ['label'] = 'Antminers9 Shell', ['weight'] = 10, ['stack'] = true, ['description'] = 'For crafting antminers9' }, ['antminers9'] = { ['name'] = 'antminers9', ['label'] = 'Antminer S9', ['weight'] = 100, ['stack'] = true, ['description'] = 'Asic miner used for mining Bitcoin' }, ['cryptositck'] = { ['name'] = 'cryptostick', ['label'] = 'Crypto Stick', ['weight'] = 1, ['stack'] = false, ['description'] = 'A usb drive containing your crypto' } - QBCore / QBox / QS-Inventory
Path: qb-core/shared/items.lua
To add images to the qb-inventory, add them to qb-inventory/html/images
-- Luxu Crypto Mining items ['asic_miner_fan'] = { ['name'] = 'asic_miner_fan', ['label'] = 'Asic Miner Fan', ['weight'] = 10, ['type'] = 'item', ['image'] = 'Fans.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'For crafting asic miners' }, ['asic_miner_hashing_board'] = { ['name'] = 'asic_miner_hashing_board', ['label'] = 'Hashing Board', ['weight'] = 10, ['type'] = 'item', ['image'] = 'HashingBoard.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'For crafting asic miners' }, ['miner_pcb'] = { ['name'] = 'miner_pcb', ['label'] = 'Miner PCB', ['weight'] = 10, ['type'] = 'item', ['image'] = 'PCB.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'For crafting asic miners' }, ['miner_s9shell'] = { ['name'] = 'miner_s9shell', ['label'] = 'Antminers9 Shell', ['weight'] = 10, ['type'] = 'item', ['image'] = 's9shell.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'For crafting antminers9' }, ['antminers9'] = { ['name'] = 'antminers9', ['label'] = 'Antminer S9', ['weight'] = 100, ['type'] = 'item', ['image'] = 'antminers9.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Asic miner used for mining Bitcoin' }, - ESX
Execute this code on you database
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('antminers9', 'AntminerS9', 1, 0, 1), ('asic_miner_fan', 'Asic Miner Fan', 1, 0, 1), ('asic_miner_hashing_board', 'Hashing Board', 1, 0, 1), ('miner_s9shell', 'AntminerS9 Shell', 1, 0, 1), ('miner_pcb', 'Miner PCB', 1, 0, 1);
🖼️ Item Images
Database
CREATE TABLE IF NOT EXISTS `luxucm_warehouses` (
`warehouse` int(11) NOT NULL,
`owner` varchar(255) NOT NULL,
`workers` longtext NOT NULL,
`jobapplications` longtext NOT NULL,
`guests` longtext NOT NULL,
`miners` longtext NOT NULL,
`statistics` longtext NOT NULL,
`orders` longtext NOT NULL,
`logs` longtext NOT NULL,
PRIMARY KEY (`warehouse`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb3 COLLATE = utf8mb3_general_ci;
CREATE TABLE IF NOT EXISTS `luxucex_accounts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`char_id` varchar(255) NOT NULL,
`balance` bigint(20) NOT NULL DEFAULT 0,
`crypto` longtext NOT NULL,
`address` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `player` (`char_id`) USING BTREE,
KEY `char_id` (`char_id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci;