Documentation
  • Discord Server
  • About Us
  • Free Resources
    • Death Screen
      • PS-Dispatch Integration
    • Battlepass
      • Guides
      • Commands
        • Player Commands
        • Admin Commands
      • API
        • Server
    • Garages
      • Guides
        • Creating Interior
        • Creating Garage
        • How to find entity sets (customizations) for interior
  • Paid Resources
    • Elevator Creator V2
      • Installation
      • Accessible code
    • Radar System V2
      • Installation
      • Accessible code
    • Hotels Creator
      • Accessible code
    • Vehicle Shop Creator
      • Accessible code
    • Stocks Market
      • Accessible code
      • [DEV] - Usable Functions
    • Discord Voice Attendance
      • Installation
    • Deathmatch System
      • Installation
        • esx_ambulancejob
        • qb-ambulancejob
        • wasabi_ambulance
        • qbx_medical
        • codem-inventory
        • core_inventory
      • Accessible code
    • Object Creator
      • Dependencies
      • Accessible code
    • Cocaine Labs
      • Dependencies
      • Accessible code
    • Ownable Crafting Tables
      • Dependencies
      • Accessible code
      • Common Problems
    • Evidence System
      • Dependencies
      • Accessible code
      • Installation
      • API
    • Marketplace V2
      • Accessible code
      • Installation
      • Migration from V1
    • EMS Dispatch
      • Sending Dispatch
      • Accessing the Menu
      • Config File
    • Weed Planting
      • Accessible code
      • How to add new strain?
      • How to install
    • Advanced DarkNet System
      • Config
    • Advanced Taxi Job
      • Accessible code
      • Changelog
    • Advanced Gang Creator
      • Accessible code
      • Installation
        • QB Core
        • QBOX Core
      • API
      • FAQ
    • Advanced Private Cameras
      • ESX
        • Items
      • QBCore
        • Items
      • Accessible code
    • Advanced Elevator Creator
      • Accessible code
    • Advanced Ownable Rent Creator
      • SQL
      • ESX
      • QBCore
      • Config File
    • Advanced Job Creator
      • Installation
        • QB CORE
      • Accessible code
    • Advanced Ownable Shops
      • Installation
      • Accessible code
      • SQL
    • Advanced Ped Creator
      • SQL
      • Config File
    • Advanced Promocode Creator
      • Accessible code
      • SQL File
      • Common problems
    • Advanced Safe Zone Creator
      • Config File
    • Turf Wars
      • Ox Inventory
      • Accessible code
      • API
    • Advanced Gas Station Creator
      • Accessible code
    • Advanced Advertisements System
      • SQL File
      • Accessible code
    • Player Manager
      • Installation
      • Accessible code
    • Mechanic Job
      • Installation
      • Accessible code
      • SQL
    • Advanced Radar System
      • Accessible code
      • SQL
    • Crypto Mining
      • Installation
      • Accessible code
      • Items
      • SQL
    • Racing System
      • Accessible code
    • Car Theft
      • Accessible code
    • Advanced Solar Panels
      • Accessible Code
      • SQL
      • ESX
        • Items
      • QBCore
        • Items
    • Pilot Job
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • Metadata
        • qb-smallresources
      • QBOX
        • Metadata
    • Advanced Ownable Banks
      • Accessible Code
    • Post Office
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • SQL
      • Exports
    • Weather Sync
      • API
    • Billing System
      • Accessible code
      • SQL
      • Common problems
Powered by GitBook
On this page
  1. Paid Resources
  2. Crypto Mining

Accessible code

Config = {
    locales = 'en',
    versionChecking = true,

    discordLogs = {
        enable = false,
        webhook = '',
        botName = 'UNIQ TEAM',
        colors = {
            ['blue'] = 1209030,
            ['green'] = 5024796,
            ['red'] = 12980754,
        },
    },

    useTarget = false,
    targetType = 'ox', -- ox, qb, qt
    targetIcons = {
        raid = 'fas fa-skull-crossbones',
        open = 'fas fa-server',
    },

    interactDistance = 1.5,

    maxGraphicSlots = 3,
    maxServers = 2,

    serverPropType = 'xm_base_cia_server_01',

    serverItemName = 'crypto_server',
    graphicItemName = 'graphic_card',
    powersupplyItemName = 'power_supply',

    whitelistedJobs = {
        ['police'] = true,
    },

    commands = {
        {
            name = 'deleteserver',
            permission = 'group.admin',
            help = 'Remove crypto server'
        },
        {
            name = 'tptoserver',
            permission = 'group.admin',
            help = 'Teleport to server'
        },
        {
            name = 'toggleblip',
            permission = 'group.admin',
            help = 'Toggle Crypto Server Blips'
        },
    },

    blipData = {
        id = 478,
        color = 2,
        scale = 0.8,
    },

    progressType = 'oxcircle', -- oxdefault, oxcircle ( ox lib )
    progressAlign = 'bottom',
    progressColors = {
        'red', 'yellow', 'green'
    },

    placeAnimation = {
        anim = 'machinic_loop_mechandplayer',
        dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
        --scenario = '',
    },
    repairAnimation = {
        anim = 'machinic_loop_mechandplayer',
        dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@',
    },
    destroyAnimation = {
        --anim = '',
        --dict = '',
        scenario = 'WORLD_HUMAN_HAMMERING',
    },
    hackingAnimation = {
        anim = 'hack_loop',
        dict = 'anim@heists@ornate_bank@hack',
    },

    cryptoCoins = {
        ['uniqcoin'] = {
            label = 'UCoin',
            price = {
                min = 10000,
                max = 100000
            }
        },
        ['bitcoin'] = {
            label = 'BCoin',
            price = {
                min = 10000,
                max = 100000
            }
        },
    },

    cryptoAddress = 'xxxx-xxxx-xxxx-xxxx', -- you can put xxx-xxx-xxx

    decryptMinerChance = 10,
    decryptMinerCooldown = 1, -- in minutes

    sellAccountType = 'cash', -- cash, bank

    progressTimer = {
        addGraphicCard = 7500,
        repairGraphicCard = 5000,
        repairPowerSupply = 5000,
        decryptAddress = 5000,
        destroyServer = 5000,
    },

    notificationDuration = 5000,

    math = {
        updateInterval = 30000, -- every 30 sec will update interval ( update graphic card, power supply etc...)

        reducePower = 0.5,
        reduceGraphicCard = {
            min = 0.1,
            max = 1.0,
        },
        giveCurrency = {
            min = 0.1,
            max = 0.5,
        },

        updatePriceInterval = 3600000, -- every 1h interval will update cryptocurrency pries
    },
}
Utils = {}

Utils.Notification = function(title, description, type, duration)
    lib.notify({
        title = title,
        description = description,
        type = type,
        duration = duration or 5000
    })
end

Utils.ProgressBar = function(label, duration, anim)
    if anim.dict == '' then anim.dict = nil end
    if anim.anim == '' then anim.anim = nil end
    if anim.scenario == '' then anim.scenario = nil end

    if Config.progressType == 'oxdefault' then
        if lib.progressBar({
            duration = duration,
            label = label,
            useWhileDead = false,
            canCancel = true,
            disable = {
                car = true,
                move = true,
                combat = true,
                mouse = true,
            },
            anim = {
                dict = anim.dict,
                clip = anim.anim,
                scenario = anim.scenario
            },
        }) then return true else return false end
    elseif Config.progressType == 'oxcircle' then
        if lib.progressCircle({
            duration = duration,
            label = label,
            position = Config.progressAlign,
            useWhileDead = false,
            canCancel = true,
            disable = {
                car = true,
                move = true,
                combat = true,
                mouse = true,
            },
            anim = {
                dict = anim.dict,
                clip = anim.anim,
                scenario = anim.scenario
            },
        }) then return true else return false end
    end
end
Utils = {}

Utils.Notification = function(src, title, description, type, duration)
    TriggerClientEvent('ox_lib:notify', src, {
        title = title,
        description = description,
        type = type,
        duration = duration
    })
end
PreviousInstallationNextItems

Last updated 1 year ago