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.
Returns:
table:{ success: boolean }
id
number
❌
The ID of the auction to delete.
Last updated