70 lines
1.3 KiB
Markdown
70 lines
1.3 KiB
Markdown
# Service App Configuration
|
|
|
|
This page explains all configuration options for the Service (Emergency Services) app in codem-phone.
|
|
|
|
---
|
|
|
|
## Services
|
|
|
|
```lua
|
|
Services = {
|
|
{
|
|
jobname = "police",
|
|
joblabel = "Police",
|
|
},
|
|
{
|
|
jobname = "ambulance",
|
|
joblabel = "Ambulance",
|
|
},
|
|
{
|
|
jobname = "mechanic",
|
|
joblabel = "Mechanic",
|
|
},
|
|
{
|
|
jobname = "taxi",
|
|
joblabel = "Taxi",
|
|
},
|
|
{
|
|
jobname = "realestate",
|
|
joblabel = "Real Estate",
|
|
},
|
|
}
|
|
```
|
|
|
|
| Parameter | Type | Description |
|
|
|-----------|------|-------------|
|
|
| `jobname` | string | Job name (must match server job name) |
|
|
| `joblabel` | string | Display label shown in the app |
|
|
|
|
---
|
|
|
|
## Adding New Services
|
|
|
|
To add a new service, add a new entry to the `Services` table:
|
|
|
|
```lua
|
|
{
|
|
jobname = "yourjob",
|
|
joblabel = "Your Job Label",
|
|
},
|
|
```
|
|
|
|
---
|
|
|
|
## Default Services
|
|
|
|
| Job Name | Label |
|
|
|----------|-------|
|
|
| `police` | Police |
|
|
| `ambulance` | Ambulance |
|
|
|
|
### Optional Services (Commented Out)
|
|
|
|
| Job Name | Label |
|
|
|----------|-------|
|
|
| `mechanic` | Mechanic |
|
|
| `taxi` | Taxi |
|
|
| `realestate` | Real Estate |
|
|
|
|
Uncomment these lines to enable additional services.
|