βš™οΈAdd new currency

Installation for SA-Money script (Adding new currency)

circle-info

This works only like item as money. That means to add or remove the money you have to edit scripts that use that.

Example

From

Player.Functions.RemoveMoney('cash', amount, "Bank deposit")

To

Player.Functions.RemoveMoney('blackmoney', amount, "Bank deposit")

  • If you have successfully installed the script, then you can add new currency by these steps

triangle-exclamation
  • First of all, we need to config your config.lua in SA-Money-v2

config.lua
Money = { 
    Currencies = {
        [1] = {
            currency = 'cash',
            item = 'money',
            prop = 'prop_cash_pile_02',
        },
        [2] = {
            currency = 'blackmoney',
            item = 'black',
            prop = 'prop_cash_pile_02',
            --chance = 1.0, -- 0.7 = 70% chance to success / 30% to call a cops (DOESN'T WORK FOR NOW)
        },
        --[[[3] = {
            currency = 'printedbills',
            item = 'printedbills',
            prop = 'prop_cash_pile_02',
            --chance = 1.0, -- 0.7 = 70% chance to success / 30% to call a cops (DOESN'T WORK FOR NOW)
        }, ]]
    }
}
  • Now, we have to create an item in qb-core > shared > items.lua same way as you added cash

  • The next step is to add new currency into the config.lua in QB-Core

Now it's done and it should work. If it doesn't work try other tips or contact us on Discord

circle-info

If you get some errors in the console, try the section Error Fixes

Last updated