I welcome you CFX community!
Today I present you the crypto mining system! This system provides accessibility for frameworks: ESX, QBCore, Standalone, as well as custom ones that you can easily connect using our bridge file. The resource provides huge editing capabilities using a configuration file and unique functionality. Iβm sure you and your players will love it!
Mining devices are devices that can be purchased in a store or obtained from secret locations that you can place. Each device is a functional system that can be used to mine cryptocurrencies.
Like any other electronic device, it will require electricity, which is implemented in the format of replaceable batteries. In addition to electricity, you will also have to make sure that no one robbed or stole the mining device, which is also a challenge.
Demonstration of the system:
π₯ Preview Video
Example of a configuration file:
Configuration files
--/*
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββ¦ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββ¦ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-- βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ*/
Config = {}
Config.myFramework = 'esx' --Defining the framework like esx/qb/standalone.
Config.useInventory = true --Do you want to use a inventory system?
Config.myInventory = 'ox_inventory' --Inventory definition like ox_inventory/qb-inventory/esx. (Custom ones can be added to the Config.storageSetup and bridge file).
Config.useNotifications = true --Do you want to use a notification system?
Config.myNotifications = 'ox_lib' --Notification definition like ox_lib/custom. (Custom ones can be added to the bridge file).
--Interaction distance
Config.interactionDistance = 2.0
--Delay in loading objects
Config.delayLoadingObjects = 5000 --We recommend leaving 5000 thousand = 5 seconds, if you have problems with loading, then increase the delay.
--mining devices (item)
Config.minerItemName = 'bur_mainer'
--battery (item)
Config.batteryItemName = 'bur_battery_mainer'
--Percentage of replenishment of power from 1 battery
Config.replenishmentBattery = 10
--Do you want to use animation to open doors?
Config.useAnimMainerInstall = true
Config.animMainerInstallDict = "timetable@maid@ig_2@" --Anim dictionary
Config.animMainerInstallName = "ig_2_base" --Anim name
Config.animMainerInstallTime = 1000 --Anim time in ms
--Do you want to use animation to knock on doors?
Config.useAnimBatteryChange = true
Config.animBatteryChangeDict = "timetable@maid@ig_2@" --Anim dictionary
Config.animBatteryChangeName = "ig_2_base" --Anim name
Config.animBatteryChangeTime = 2000 --Anim time in ms
--The ability to embed your own exports to hide the hud
Config.useHudOffOnEvents = true
Config.hudOnEvent = function()
DisplayRadar(true)
--exports.Burevestnik_hud:Burevestnik_hud_on() -- Uncomment if you use Burevestnik_HUD system (https://burevestnik.tebex.io/package/5371893)
end
Config.hudOffEvent = function()
DisplayRadar(false)
--exports.Burevestnik_hud:Burevestnik_hud_off() -- Uncomment if you use Burevestnik_HUD system (https://burevestnik.tebex.io/package/5371893)
end
--the percentage of crypto sales from the original price Example: The exchange is 1 to 100.
Config.sellPercentage = 1
Config.sellPercentage2 = 100
--The price of the mining device from which Config.sellRackPercentage will be calculated
Config.minerPrice = 1000
--the percentage of rack sales from the original price
Config.sellRackPercentage = 10
--The amount of cryptocurrency per interval
Config.amountMiningPerInterval = 1
--The interval of cryptocurrency mining. Formula: N = Config.miningInterval*1000
Config.miningInterval = 0.1 --5 sec
--Percentage of battery drain per interval
Config.percentageBatteryDrainPerInterval = 1
--Battery consumption interval. Formula: N = Config.batteryConsumptionInterval*1000
Config.batteryConsumptionInterval = 600 --10 min
--always place an object on the ground (it may not work correctly with some objects)
Config.alwaysPlaceObjectOnGround = false
--If false, only the owner can open the miner menu
Config.everyoneCanOpenMenuMiner = false
--If false, only the owner can break the miner
Config.everyoneCanDestroyMiner = false
--If false, only the owner can get the miner
Config.everyoneCanGetMiner = false
--Allow hacking of miners. In this case, set the following parameters to false: Config.everyoneCanOpenMenuMiner, Config.everyoneCanDestroyMiner, Config.everyoneCanGetMiner
Config.isAllowedMinerHack = true
Config.UseItemForBreak = true
--A necessary item to hack miner
Config.itemForBreak = 'lockpick'
--Do you want to use a minigame to hack miner?
Config.useLockpickMiniGame = false
Config.lockpickMiniGame = function()
--you can trigger your mini game by simply returning its client export
-- return exports.Burevestnik_lockpick_minigame:Burevestnik_lockpick_minigame_start() --Uncomment if you use Burevestnik_lockpick (https://forum.cfx.re/t/paid-standalone-esx-qbcore-uncharted-lockpick-minigame-ui-burevestnik/4831660)
--return exports.Burevestnik_lockpick_minigame:Burevestnik_lockpick_minigame_start() --Uncomment if you use Burevestnik_lockpick_minigame (https://forum.cfx.re/t/free-standalone-lockpick-minigame-ui-burevestnik/5206065)
return true
end
--Do you want to use the job for destroy apartments
Config.UseJobsForDestroy = true
Config.usePoliceJobs = true
Config.useGangsJobs = true
--Job for a destroy
Config.policeJobs = {"police", "unemployed"}
Config.gangsJobs = {"gang1", "unemployed"}
--Notify the police about the installation of a cryptosystem? (You need to set up your own event in the police system).
Config.policeAlarm = false
Config.policeAlarmEvent = function(Coordinates) -- Client function
if Config.policeAlarm then
local cryptosCoordinates = Coordinates
print(cryptosCoordinates) -- insert your police call event here
end
end
--Reserved buttons by the system for rack control
Config.rackKey = {
44, -- Q
38, -- E
201, -- ENTER
73 -- X
}
Config.Translation = {
['menu1'] = 'Open the miners menu',
['menu2'] = 'Destroy the miner',
['menu3'] = 'Take a miner',
['menu4'] = 'Hack the miner',
['menuIcon1'] = 'fa-solid fa-microchip',
['menuIcon2'] = 'fa-solid fa-hammer',
['menuIcon3'] = 'fa-solid fa-hand',
['menuIcon4'] = 'fa-solid fa-screwdriver',
['positionSettingsControl1'] = 172, -- You can find more keys here: https://docs.fivem.net/docs/game-references/controls/
['positionSettingsControl2'] = 173, -- You can find more keys here: https://docs.fivem.net/docs/game-references/controls/
['positionSettingsControl3'] = 205, -- You can find more keys here: https://docs.fivem.net/docs/game-references/controls/
['positionSettingsControl4'] = 206, -- You can find more keys here: https://docs.fivem.net/docs/game-references/controls/
['positionSettingsControl5'] = 252, -- You can find more keys here: https://docs.fivem.net/docs/game-references/controls/
['positionSettingsControl6'] = 176, -- You can find more keys here: https://docs.fivem.net/docs/game-references/controls/
['positionSettingsControl7'] = 329, -- You can find more keys here: https://docs.fivem.net/docs/game-references/controls/
['translationText1'] = 'Crypto miner: #',
['translationText2'] = 'Power:',
['translationText3'] = 'Exchange rate:',
['translationText4'] = 'Price:',
['translationText5'] = 'β',
['translationText6'] = 'Buy',
['translationText7'] = 'Sell cryptos',
['translationText8'] = 'Earned:',
['translationText9'] = 'Install the battery',
['translationText10'] = 'Up',
['translationText11'] = 'Down',
['translationText12'] = 'Rotate left',
['translationText13'] = 'Rotate right ',
['translationText14'] = 'Exit',
['translationText15'] = 'Place',
['translationText16'] = 'Move',
['translationText17'] = 'Cryptos',
['translationText18'] = 'Mainer has been destroyed',
['translationText19'] = ' H/s',
['translationText20'] = 'You dont have enough funds',
['translationText21'] = 'You have successfully purchased an crypto',
['translationText22'] = 'You have successfully sold cryptocurrency',
['translationText23'] = 'There is no cryptocurrency for sale',
['translationText24'] = 'Rack',
['translationText25'] = 'You have successfully sold the miner',
['translationText26'] = 'You do not have permission to remove rack',
['translationText27'] = 'You dont have enough money to buy rack',
['translationText28'] = 'You have successfully installed the miner',
['translationText29'] = 'Sell miner',
['translationText30'] = 'You have successfully get the miner',
['translationText31'] = 'Mining speed: ',
['translationText32'] = '%',
['translationText33'] = 'Status: ',
['translationText34'] = 'Enable/Disable',
['translationText35'] = 'Status change...',
}
Optimization (The script consumes):
0.00 ms in a quiet state.
0.00 ms in an active state.
What does this system include:
- This system works on ESX, QBCore, as well as STANDALONE!
- The ability to connect a custom framework!
- Beautiful user interface!
- Custom prop!
- The ability to place the device all over the map!
- A convenient bridge file!
- The ability to place the device all over the map!
- The ability to install a custom inventory system (ox_inventory and qb-inventory is installed by default)!
- Support for the
Ox Target!
- The ability to set police alarms!
- Incredibly customizable configuration file!
- You can completely change the user interface at will!
- Of course support, Iβm ready to help you!
TOP SALES
You may also be interested in my other resources:
Code accessible | Escrow: No - Available only: config, ui, bridge |
Subscription based | No |
Lines (approximately) | 1500+ |
Requirements | ox_target, ox_lib, oxmysql |
Support | Yes |