• New pricing for Credits and VIP

  • We sell Discord Boosts (level 3) now at a very cheap price and 100% guarantee safe and with replacement guarantees if there happens to be an issue💪

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
22
3
Credits
3,853
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