Skip to content

Services

Services

Professional services directory where players register as service providers (mechanic, lawyer, doctor, taxi, etc.), set availability, and get rated by clients.

Database Tables

TablePurpose
phone_servicesRegistered service providers -- identifier, phone_number, category, name, description, is_available, rating_avg, rating_count
phone_services_ratingsClient ratings -- service_id, rater_identifier, score, comment

Server Callbacks

CallbackPurpose
gcphone:services:getCategoriesReturns configured service categories
gcphone:services:getListingsLists services filtered by category
gcphone:services:getMyServiceReturns the caller's own service registration
gcphone:services:registerRegisters a new service provider
gcphone:services:updateServiceUpdates service name/description/category
gcphone:services:setAvailabilityToggles available/unavailable
gcphone:services:deleteServiceDeletes own service registration
gcphone:services:getWorkerInfoGets a provider's public profile
gcphone:services:rateWorkerSubmits a rating for a provider
gcphone:services:getWorkerRatingsGets all ratings for a provider

Config Options

lua
Config.Features.Services = true

Config.Services = {
    Categories = {
        { id = 'mechanic', label = 'Mecanico', icon = '🔧' },
        { id = 'lawyer', label = 'Abogado', icon = '⚖️' },
        { id = 'doctor', label = 'Doctor', icon = '🏥' },
        { id = 'taxi', label = 'Taxi', icon = '🚕' },
        { id = 'delivery', label = 'Delivery', icon = '📦' },
        { id = 'security', label = 'Seguridad', icon = '🛡️' },
        { id = 'realtor', label = 'Inmobiliaria', icon = '🏠' },
        { id = 'other', label = 'Otro', icon = '📋' },
    },
    MaxDescriptionLength = 500,
}

Released under GPL-3.0 License