Studio PLAYERS
  • Studio PLAYERS
  • 📦QB/QBX SCRIPTS
    • 💸SA-MONEY
      • 💡Introduction
      • ⚙️Installation
        • ⚙️Installation
        • ⚙️Migration
        • ⚙️Add new currency
      • 🗃️Displays $ in inventory
      • 📚HUD Implementations
        • 📗17mov_Hud
        • 📗wais-hudv5
    • 💰SA-MONEYWASH
      • 💡Introduction
      • ⚙️Installation
    • 🕐SA-PLAYTIME
      • 💡Introduction
      • ⚙️Installation
      • ✈️Exports
    • ☠️SA-CHARACTERKILL
      • 💡Introduction
      • ⚙️Installation
    • 🧊SA-BOXE
      • 💡Introduction
      • 💡Usage
      • ⚙️Installation
    • 🚦SA-TRAFFICLIGHTSPRIORITY
      • 💡Introduction
      • ⚙️Installation
  • 📦ESX SCRIPTS
    • 🕐SA-PLAYTIME
      • 💡Introduction
      • ⚙️Installation
      • ✈️Exports
    • ☠️SA-CHARACTERKILL
      • 💡Introduction
      • ⚙️Installation
    • 🚦SA-TRAFFICLIGHTSPRIORITY
      • 💡Introduction
      • ⚙️Installation
  • 🛠️FAQ
    • 🛠️General Issues
    • 🛠️SA-Money-V2
Powered by GitBook
On this page
  • Common
  • QS-Inventory
  • OX Inventory
  • Codem-Inventory
  • FD_Banking
  1. FAQ

SA-Money-V2

Frequently Asked Questions - Here you can find tips to solve some common issues for SA-Money-v2

Last updated 4 days ago

Common

I can't see the image of the item
  • By default, we don't provide any pictures for money item. You have to download them from the internet and import them to inventory.

  • If you already downloaded them, imported and still don't see them, please get in touch with the developer of the inventory, not us!

SCRIPT ERROR: @qb-core/server/player.lua:xxx: No such export 'FUNCTION' in resource SA-Money-v2
  • Open the live console in txAdmin and type into the command prompt to ensure SA-Money-v2

  • If you get an error like 'You lack the required entitlement' follow this


QS-Inventory

When I pick up money from the ground, it duplicates
  • If you use Quasar inventory, just open the quasar inventory folder server/custom/framework/qb.lua and disable UseCashAsItem = false


OX Inventory

Duplicating money

If you use ox_inventory, open the folder ox_inventory/modules/bridge/qb/server.lua and replace it with this or you can do it yourself by editing the file. Below is a picture of how to edit it.


Codem-Inventory

Cash doesn't show in the inventory
  • If you cannot give yourself item cash, create a new one named money in codem-inventory > config > itemlist.lua

    money                        = { name = 'money', label = 'Money', weight = 0, type = 'item', image = 'cash.png', unique = false, useable = false, shouldClose = false, description = 'A Useable BoomMic' },    tshirt_1                     = { name = 'tshirt_1', label = 'Tshirt', weight = 100, type = 'clothes', image = 'tshirt_1.png', unique = true, useable = true, shouldClose = false, combinable = nil, description = 'A Useable Outfit' },
  • then change in SA-Money-v2 > config.lua from cash to money

Money = { 
    Currencies = {
        [1] = {
            currency = 'cash',
            item = 'money',
            prop = 'prop_cash_pile_02',
        },
    }
}

FD_Banking

Item doesn't show/add in inventory
  • This problem is because FD-Banking rewrites functions that you edit in player.lua. You have to open fd_banking / modules / bridge / server / qb.lua to fix that

  • Find this line

player.PlayerData.money[moneytype] = player.PlayerData.money[moneytype] + amount
  • and replace it with this

local typ = exports['SA-Money-v2']:MoneyChecker(moneytype)
if typ then
    if player.PlayerData.money[moneytype] == player.PlayerData.money[typ] then
        exports['SA-Money-v2']:AddMoney(player.PlayerData, amount, reason, typ)
    end
else
    player.PlayerData.money[moneytype] = player.PlayerData.money[moneytype] + amount
end
  • Do the same thing with this line below

player.PlayerData.money[moneytype] = player.PlayerData.money[moneytype] - amount
  • replace with this

local typ = exports['SA-Money-v2']:MoneyChecker(moneytype)
if typ then
    if player.PlayerData.money[moneytype] == player.PlayerData.money[typ] then
        exports['SA-Money-v2']:RemoveMoney(player.PlayerData, amount, reason, typ)
    end
else
    player.PlayerData.money[moneytype] = player.PlayerData.money[moneytype] - amount
end

Example file

🛠️
🛠️
here
guide
one
https://github.com/Studio-PLAYERS/TEBEX-Doc/blob/main/SA-Money/Installation/server.lua