Biyei Scripts

Installation

  1. 1

    Dependencies

    Make sure you have one of these frameworks installed on your server:

    1. ESX or QB-CORE
  2. 2

    Start order

    server.cfgserver.cfg
    ensure biyei_coins
  3. 3

    Add server coins

    Note

    ESX Installation Coins

    1. Open the config.lua file of es_extended.
    2. In Config.Accounts add a new account type with your own name for coins, e.g. 'coins'.

    OLD ESX:

    Lua
    Config.Accounts = {
    	bank = _U('account_bank'),
    	black_money = _U('account_black_money'),
    	money = _U('account_money'),
    	coins = 'coins',
    }
    
    Config.StartingAccountMoney 	= {bank = 25000, money = 5000, coins = 0}
  4. 4

    Add server coins — NEW ESX

    NEW ESX:

    Lua
    Config.Accounts = {
    	bank = {
    		label = TranslateCap('account_bank'),
    		round = true
    	},
    	black_money = {
    		label = TranslateCap('account_black_money'),
    		round = true
    	},
    	money = {
    		label = TranslateCap('account_money'),
    		round = true
    	},
    	coins = {
    		label = 'coins',
    		round = true,
    	}
    }
    
    Config.StartingAccountMoney 	= {bank = 50000, coins = 0}
  5. 5

    Add server coins — QB-Core

    Note

    QB-CORE Installation Coins

    1. Open the config.lua file of qb-core.
    2. In QBConfig.Money.MoneyTypes add a new account type with your own name for coins, e.g. 'coins'.
    Lua
    QBConfig.Money = {}
    QBConfig.Money.MoneyTypes = { cash = 500, bank = 5000, crypto = 0, coins = 0 } -- type = startamount - Add or remove money types for your server (for ex. blackmoney = 0), remember once added it will not be removed from the database!
    QBConfig.Money.DontAllowMinus = { 'cash', 'crypto', 'coins' } -- Money that is not allowed going in minus
    QBConfig.Money.PayCheckTimeOut = 10 -- The time in minutes that it will give the paycheck
    QBConfig.Money.PayCheckSociety = false -- If true paycheck will come from the society account that the player is employed at, requires qb-management