# ‌📱 rcore\_dispatch

## rcore\_dispatch

[**Buy Here**](https://store.rcore.cz)

## Instalation guide

#### Step 1 - Database

You just start the script, and database is going to be defined automatically.

#### Step 2 - Configuration

Make sure to read the contents of the different files inside the config directory (check the resource config [here](https://documentation.rcore.cz/paid-resources/rcore_dispatch/config) and our job configuration [here](https://documentation.rcore.cz/paid-resources/rcore_dispatch/add-jobs)) and configure all the stuff that's necessary for this resource to work correctly. **We provide compatibility with some popular dispatch scripts, so you don't have to change code in your server to make our script work out of the box, you can check which dispatch scripts have compatibility in:** `rcore_dispatch/server/api/dispatch_integration.lua`

## Setup guide

1. Define startup order -> server.cfg
2. Start your server
3. When server is loaded with the dispatch, the resource will setup the environment automatically.
4. Have fun

* If you are using own framework: [check docs](https://documentation.rcore.cz/paid-resources/rcore_dispatch/framework#custom-framework)

## SCRIPT STARTUP ORDER:

NOTE: !!! Make sure that you are having correct script server order, and you are having this order after framework!!! Follow this startup order:

* Framework (ESX, QBCore or custom)
* pma-voice ([our resource](https://github.com/rcore-cz/pma-voice), but this is optional)
* screenshot-basic (download [here](https://github.com/citizenfx/screenshot-basic), optional)
* rcore\_dispatch

## Compatibility

*Frameworks:*

* QBCore
* ESX
* Custom framework, check this [page](https://documentation.rcore.cz/paid-resources/rcore_dispatch/framework#custom-framework))

*Back Compatibility:*

* cd\_dispatch
* qs-dispatch

#### Chat commands

All this commands can be eddited throught config.

| Command         | Params |                     Description |
| --------------- | :----: | ------------------------------: |
| /911            |  text  |                 Stuff to report |
| /anon911        |  text  |     Stuff to report anonymously |
| /sos            |  text  |              Accident to report |
| /dispatch       |  none  | Toggle the dispatch switchboard |
| /panel          |  none  |         Open the dispatch panel |
| /config\_switch |  none  |        Open the dispatch config |
