Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Question okokMarketplace

HHTT066

Silver Elite
Joined
Dec 7, 2021
Messages
68
Reaction score
17
Points
156
Location
中国
(HUEK8YV{5TW~G2S`8I)D0X.png
 

HHTT066

Silver Elite
Joined
Dec 7, 2021
Messages
68
Reaction score
17
Points
156
Location
中国
if xPlayer.canCarryItem(items[1].item_id, tonumber(items[1].amount)) then
MySQL.Async.execute('DELETE FROM okokMarketplace_items WHERE item_id = @item_id AND id = @id', {
['@id'] = items[1].id,
['@item_id'] = items[1].item_id,
},function (rowDeleted)
if rowDeleted > 0 then
if items[1].sold then
xPlayer.addAccountMoney('bank', tonumber(items[1].price))
TriggerClientEvent('okokNotify:Alert', xPlayer.source, "MARKET", "You claimed "..items[1].price.." €", 5000, 'success')
if Webhook ~= '' then
local identifierlist = ExtractIdentifiers(xPlayer.source)
local data = {
playerid = xPlayer.source,
identifier = identifierlist.license:gsub("license2:", ""),
discord = "<@"..identifierlist.discord:gsub("discord:", "")..">",
type = "claim",
action = "Claimed an Ad",
item = items[1].label.." (x"..items[1].amount..")",
price = items[1].price,
desc = items[1].description,
title = "MARKETPLACE - Items",
}
discordWenhook(data)
end
check the line 611
 
Top