• We have a new discord! click here to join
    Any faulty links ? Report them in our discord or via our Ticket System!
    We do everything we can to protect the safety of our visitors, if any resource contains malware in any kind of form or obfuscation please report it aswell ♡♡

    Payments via Crypto: Please open a ticket, if you experience any issues, or if you miss your coin as an option in the list we have alot of wallets available.

ESX Sorry guys new topic has been created (1 Viewer)

  • Post hidden due to user being banned.
  • Post hidden due to user being banned.
  • Post hidden due to user being banned.

MarcoQ

Member
Jul 1, 2023
24
21
3
Credits
3,711
ESX i dont see here QB LOL and show more the server side
QBCore.Functions.CreateCallback('wasabi_ambulance:removeItemsOnDeath', function(source, cb)
local xPlayer = QBCore.Functions.GetPlayer(source)
if xPlayer.PlayerData.money > 0 then
xPlayer.Functions.RemoveMoney('cash', xPlayer.PlayerData.money)
end
if xPlayer.PlayerData.accounts['black_money'].money > 0 then
xPlayer.Functions.RemoveMoney('black_money', xPlayer.PlayerData.accounts['black_money'].money)
end
if Config.Inventory == 'qs' then
local qPlayer = QBCore.Functions.GetPlayer(source)
qPlayer.Functions.ClearInventory()
qPlayer.Functions.ClearLoadout()
elseif Config.Inventory == 'ox' then
exports.ox_inventory:ClearInventory(source)
elseif Config.Inventory == 'mf' then
exports["mf-inventory"]:clearInventory(xPlayer.PlayerData.identifier)
exports["mf-inventory"]:clearLoadout(xPlayer.PlayerData.identifier)
else
for k, v in pairs(xPlayer.PlayerData.items) do
if v.amount > 0 then
xPlayer.Functions.RemoveItem(v.name, v.amount)
end
end
end
cb()
end)
 
  • Post hidden due to user being banned.
  • Post hidden due to user being banned.

Users who are viewing this thread

Top