SA-Money-V2
Frequently Asked Questions - Here you can find tips to solve some common issues for SA-Money-v2
Last updated
Frequently Asked Questions - Here you can find tips to solve some common issues for SA-Money-v2
Last updated
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!
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
If you use Quasar inventory, just open the quasar inventory folder server/custom/framework/qb.lua and disable UseCashAsItem = false
If you use ox-inventory, open the folder ox-inventory/modules/bridge/qb/server.lua and replace it with this one or you can do it yourself by editing the file. Below is a picture of how to edit it.
https://github.com/Studio-PLAYERS/TEBEX-Doc/blob/main/SA-Money/Installation/server.lua
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',
},
}
}
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