🛠️SA-Money-V2
Frequently Asked Questions - Here you can find tips to solve some common issues for SA-Money-v2
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 guide
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 one.
https://github.com/Studio-PLAYERS/TEBEX-Doc/blob/main/SA-Money/Installation/server.lua
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
Last updated