PaPi
PaPi
possible exemple ? and is it possible to deactivate the inventory drops? and use ox_target to pick up the item?
Could I get support for creating an ox_target to pick up the item into my inventory? It would be good to add it via a convar as well. ```lua local...
Too bad the suggestion wasn't taken into account, it would have been a great addition.
-- modules/shops/server.lua ```lua local function canAffordItem(inv, currency, price) local canAfford if currency == 'bank' then local getPlayerBankBalance = server.getPlayerBankBalance(inv.player.source) canAfford = price >= 0 and getPlayerBankBalance >= price else canAfford...
bridge/esx/server.lua ```lua ---@diagnostic disable-next-line: duplicate-set-field function server.getPlayerBankBalance(playerId) local xPlayer = ESX.GetPlayerFromId(playerId) return xPlayer.getAccount('bank').money end ---@diagnostic disable-next-line: duplicate-set-field function server.removePlayerBankMoney(playerId, amount) local xPlayer = ESX.GetPlayerFromId(playerId) return xPlayer.removeAccountMoney('bank', amount) end ```
exemple data/shops.lua ```lua return { General = { name = 'Shop', noCurrency = 'black_money', blip = { id = 59, colour = 69, scale = 0.8 }, inventory = {...
I've made some changes to make it possible to pay with society, bank, cash, crypto/dirty money... https://github.com/Mesrine67/ox_inventory/commit/e75e57d64780998daec6df5ffa94467a5e9ba8b9
Wasn't this added to the documentation?
ok thank you for giving an answer, ESX you are the best, the only negative point I find that you should use Overextended more often for the framework it could...
ok what do you think of that? ```lua local OxMysql = exports.oxmysql function ESX.CreateJob(name, label, grades) local Invoke = GetInvokingResource() if not name or name == '' then print(("^5[%s]-^1[ERROR]^7 Missing...