Skip to content

Yellow Pages

Yellow Pages

Marketplace / classified ads app where players can list items for sale, browse by category, search, share location, and contact sellers.

Database Tables

TablePurpose
phone_marketListings -- identifier, phone_number, seller_name, seller_avatar, title, description, price, category, photos (JSON), views, status (active/sold/expired), location fields
phone_yellowpages_contactsContact history -- listing_id, buyer_identifier, seller_identifier, contact_type (call/message)

Server Callbacks

CallbackPurpose
gcphone:yellowpages:getListingsReturns active listings with optional category/search filter and pagination
gcphone:yellowpages:getMyListingsReturns the caller's own listings
gcphone:yellowpages:createListingCreates a new listing with photos
gcphone:yellowpages:deleteListingDeletes own listing
gcphone:yellowpages:getSellerInfoReturns seller contact info and increments views
gcphone:yellowpages:recordContactRecords a contact event (call or message) for analytics
gcphone:yellowpages:shareLocationAttaches the player's current coordinates to a listing
gcphone:yellowpages:getCategoriesReturns the hardcoded category list

Categories

IDName
allTodos
autosAutos
propertiesPropiedades
electronicsElectronica
servicesServicios
jobsTrabajo
itemsArticulos
otherOtros

Config Options

lua
Config.Features.YellowPages = true

Config.Market = {
    MaxListings     = 10,
    ListingDuration = 604800,
    MaxPhotos       = 5,
    Categories      = { ... },
}

Config.Security.RateLimits.market = 2500

Exports

None.

Released under GPL-3.0 License