Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 mods.

Question okokMarketplace

HHTT066

Silver Elite
Joined
Dec 7, 2021
Messages
70
Reaction score
9
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
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds