Docs
Public Services Panel
Public Services Panel
The City Services Panel is a robust directory for local services, providing essential information, contact details, and availability to seamlessly connect with users.
Configuration
The Business Panel can be configured in two ways:
- Using a Live Google Sheet (provided in the package)
- Using a local JSON file
Using a Google Sheet
The configuration file is located at g-tablet/core/configs/appCityService.json
.
appCityService.json
{
"useGoogleSheets": true, // Whether to use a Google Sheet or JSON for the city services data
"SheetsCity": "Google_Sheet_URL", // The URL of the Google Sheet containing the city services data
"SheetsCityLocal": "./data/cityservices.json" // The local path to the city services data file
}
Using a local JSON file
If you choose to use local JSON instead of Google Sheets, you can use the the configuration file located at g-tablet/core/data/cityservices.json
.
cityservices.json
[
{
"id": "1",
"name": "BBSP",
"description": "Boling Broke State Prison",
"type": "Public",
"availability": "🟢",
"location": "San Andreas",
"phone": "555-30301",
"image": "./city/bbsp.webp"
},
{
"id": "2",
"name": "BCFD",
"description": "Blaine County Fire Department",
"type": "Fire Fighter",
"availability": "🟢",
"location": "Blaine County",
"phone": "555-38183",
"image": "./city/bcfd.webp"
},
//...
]