> For the complete documentation index, see [llms.txt](https://portis-store.gitbook.io/portis-store-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portis-store.gitbook.io/portis-store-docs/e-scoot.md). Agents can also search and read this documentation through its [MCP server](https://portis-store.gitbook.io/portis-store-docs/~gitbook/mcp).

# E-Scoot

Installation

### Requirements

* **FiveM Server** with OneSync enabled
* **Phone**: One of the following:
  * [lb-phone](https://lbscripts.com/)
  * [sd-phone](https://github.com/Samuels-Development/sd-phone)
  * [GKSPhone v2](https://gkshop.org/)
  * [ySeries / YFlip](https://yflip-phone.com/)
  * [17mov\_Phone](https://17movement.net/products/17mov_phone)
  * [lb-tablet](https://lbscripts.com/) (can run alongside a phone)
* **Framework** (optional): ESX, QBCore, or standalone

### Installation

{% stepper %}
{% step %}

#### Step 1 — Install Resource

1. Place the `portis-escoot` folder in your server's `resources/` directory.
2. Add to your `server.cfg` (start **after** your phone resource):

```cfg
ensure oxmysql
ensure es_extended
ensure lb-phone
ensure portis-escoot
```

{% endstep %}

{% step %}

### Step 2 - Access

Administrators must belong to `group.admin` in your server's permission setup. Players do not need this permission to rent scooters or perform service work.

```cfg
add_ace group.admin portis.escoot.admin allow
```

{% endstep %}

{% step %}

#### Step 3 — Start

Use `/portis_escoot_admin` to open the dashboard and manage stations.
{% endstep %}
{% endstepper %}

### Configuration

Server settings are in `config.lua`. Restart the resource after changing them.

| Setting                                   | Purpose                                                                                                                |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `Config.Locale` / `Config.FallbackLocale` | Display language                                                                                                       |
| `Config.Phone`                            | Phone provider, or `auto`, `standalone`, `custom`.                                                                     |
| `Config.StationAdmin`                     | Enable the dashboard, change its command and configure its ACE permission.                                             |
| `Config.StationBlips`                     | Station GTA map blips: visibility, sprite, colour, scale, short-range radar and shared category ID.                    |
| `Config.Payment`                          | Framework, payment account and policy for failed final payments.                                                       |
| `Config.Rental`                           | Currency symbol, unlock fee and price per minute.                                                                      |
| `Config.ScooterDrive.maxSpeedKmh`         | Scooter speed limit.                                                                                                   |
| `Config.Inventory`                        | Default capacity and initial stock for new stations.                                                                   |
| `Config.Battery`                          | Range, battery warning thresholds, minimum rental charge and station charging time.                                    |
| `Config.Service`                          | Enable service work; configure NPC, truck spawn and depot locations, decorative display, rewards and restocking tasks. |
| `Config.Stations`                         | Default stations for initial setup. Manage saved stations through the dashboard.                                       |
| `Config.Map`                              | Custom map imagery and calibration. Leave disabled for the standard GTA map.                                           |

#### Framework and payments <a href="#framework-and-payments" id="framework-and-payments"></a>

`Config.Payment.framework` accepts `auto`, `esx`, `qbcore`, `qbox`, `standalone` or `custom`.

* `auto` selects a running supported framework. Payment-dependent operations are blocked if no framework is available.
* ESX accounts can be `bank` or `money`. QBCore/Qbox accounts can be `bank` or `cash`.
* For a custom economy, select `custom` and implement the adapter in `server/custom_payment.lua`.
* `Config.Payment.framework = 'standalone'` or `Config.Payment.enabled = false` enables free operation. Phone standalone mode is a separate setting and does not disable payments.

The unlock fee and first minute are charged before scooter delivery. With the default prices, the initial charge is `$125 + $35 = $160`. Any remaining charge is calculated when the ride ends.

When `allowReturnWithDebt = true`, a failed final payment can still end the ride and emit a debt event. Automatic debt collection is not included.

### Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

| Issue                                | What to check                                                                                                                                                         |
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The app does not appear on the phone | Check phone resource startup order and `Config.Phone`.                                                                                                                |
| Payments are unavailable             | Check that the framework is running, the framework/account selection is correct and any custom economy adapter is configured.                                         |
| The admin dashboard does not open    | Check that the dashboard is enabled, the command name is correct and the administrator has the configured ACE permission.                                             |
| A station appears out of service     | Use the dashboard to check available stock, battery charge and ongoing transactions.                                                                                  |
| Inventory is unavailable             | Read the server console error and check file write permissions. Restore a verified backup if records are corrupt. Do not delete the inventory file to hide the error. |
| Models or animations are missing     | Check that all packaged assets were installed and their internal filenames were preserved.                                                                            |
