For the complete documentation index, see llms.txt. This page is also available as Markdown.

SERVER EXPORTS

EbuyAuction Structure
{
  "id": 1,
  "seller": 5,
  "category": "car",
  "title": "Sports Car",
  "description": "Fast and reliable.",
  "images": ["[https://example.com/car.jpg](https://example.com/car.jpg)"],
  "phoneNumber": "555-0123",
  "price": 50000,
  "hideNumber": false,
  "createdAt": 1678900000
}

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[] }

Argument
Type
Optional
Explanation

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 }

Argument
Type
Optional
Explanation

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 }

Argument
Type
Optional
Explanation

id

number

❌

The ID of the auction to delete.

Last updated