- Katılım
- 3 yıl 9 ay 18 gün
- Mesajlar
- 151
Kod:
if bankBalance >= price then
Player.removeMoney(price)
Player.addInventoryItem(itemData.name, fromcount, toSlot, itemData.info)
exports["inv-base"]:dclog(webhook.shop, "Envanter Log", "**Esya Marketten Alindi: **"..itemData.name.. " " ..fromcount.. "x\n **Market Tipi: ** "..shopType.."\n**Esya Alan: **" ..firstname.. " " ..lastname.. " \n **Discord Id:** " ..id.discord.. " \n **Identifier: **" ..id.license)
TriggerClientEvent("inventory:client:ItemBox",src, EsxGetItems[itemData.name],'add',fromcount)
--TriggerClientEvent('QBCore:Notify', src, itemInfo.label .. " satin alindi!", "success")
--TriggerEvent("qb-log:server:sendLog", Player.PlayerData.citizenid, "itemshop", {type="other", name=itemInfo.name, count=fromcount, paymentType="cash", price=price})
--TriggerEvent("qb-log:server:CreateLog", "shops", "Shop item gekocht", "green", "**"..GetPlayerName(src) .. "** heeft een " .. itemInfo.label .. " gekocht voor $"..price)
elseif bankBalance >= price then
Player.removeMoney(price)
Player.addInventoryItem(itemData.name, fromcount, toSlot, itemData.info)
exports["inv-base"]:dclog(webhook.shop, "Envanter Log", "**Esya Marketten Alindi: **"..itemData.name.. " " ..fromcount.. "x\n **Market Tipi: ** "..shopType.."\n**Esyayi Alan: **" ..firstname.. " " ..lastname.. " \n **Discord Id:** " ..id.discord.. " \n **Identifier: **" ..id.license)
TriggerClientEvent("inventory:client:ItemBox",src, EsxGetItems[itemData.name],'add',fromcount)
else
TriggerClientEvent('notification',src,'Yeterli paraniz bulunmuyor',2)
end
end