Docs
Business Panel
Business Panel
The Business Panel is a comprehensive directory for city businesses, showcasing essential information, contact details, and availability to connect with players effortlessly.
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/appBusiness.json
.
appBusiness.json
{
"useGoogleSheets": true, // Whether to use a Google Sheet or JSON for the business data
"SheetsBusiness": "Google_Sheet_URL", // The URL of the Google Sheet containing the business data
"SheetsBusinessLocal": "./data/business.json" // The local path to the business 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/business.json
.
business.json
[
{
"id": "1",
"name": "Airship",
"description": "Soar to new heights with our luxurious airship travel experiences.",
"type": "🎉 ENTERTAINMENTS",
"availability": "🟢",
"location": "San Andreas",
"phone": "555-30301",
"image": "./business/airship.webp"
},
{
"id": "2",
"name": "Airtours",
"description": "Take to the skies with our breathtaking aerial tours and scenic flights.",
"type": "🎉 ENTERTAINMENTS",
"availability": "🟢",
"location": "San Andreas",
"phone": "555-38183",
"image": "./business/airtours.webp"
},
//...
]