SERVER EXPORTS
Fetch Auctions
Fetches a list of auctions based on various filters like search query, category, sorting order, and pagination limits.
local result = exports["17mov_Phone"]:Ebuy_FetchAuctions(search, category, sort, cursor, limit, userId)Returns:
table:{ success: boolean, auctions: EbuyAuction[] }
search
string
โ
Search query to filter auctions by title.
category
"all" | "item" | "car"
โ
Fetching auctions only from this category
sort
"priceAsc" | "priceDesc"| "newest"
โ
Sorting auctions by this param
cursor
number
โ
Number of items to skip (pagination). Requires limit.
limit
number
โ
Maximum number of auctions to return.
userId
number
โ
Filter auctions created by a specific user ID.
Add Auction
Creates a new auction listing in the Ebuy marketplace.
local result = exports["17mov_Phone"]:Ebuy_AddAuction(title, description, images, phoneNumber, price, seller, category, hideNumber)Returns:
table:{ success: boolean, id?: number }
title
string
โ
The title of the auction.
description
string
โ
Detailed description of the item/vehicle.
images
string[]
โ
Array of image URLs.
phoneNumber
string
โ
Contact phone number for the seller.
price
number
โ
Price of the item.
seller
number
โ
User ID of the seller. Defaults to 0 (System).
category
"item" | "car"
โ
Auction category
hideNumber
boolean
โ
Whether to hide the seller's phone number.
Delete Auction
Removes an existing auction listing from the marketplace.
local result = exports["17mov_Phone"]:Ebuy_DeleteAuction(id)Returns:
table:{ success: boolean }
id
number
โ
The ID of the auction to delete.
Last updated