/npwd-dispatch

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Material-UI logo

NPWD Dispatcher

This is a basic resource using provided NPWD APIs for redirecting phone calls and text messages from your emergency number of choice to your roleplay dispatchers.

license GitHub all releases

Setup and Configuration

Prerequisites

This is a standalone resource using only npwd APIs and fivem natives so there are no framework dependencies and works off of convars and ace permissions. However, NPWD version 1.3.3 or newer is required.

Installation

Download the latest from the release or build from source.

Define your emergency number

This will be the phone number that all calls and messages will be redirected from, by default it is '911'. You can defined your own emergency number by setting the following convar in your server.cfg:

set npwd_dispatch_number 999

Dispatcher Permissions

To use the command /dispatchduty the ace permission command.dispatchduty is needed, this can be assigned to a player or inherited through a group.

add_principal identifier.license:abcd12345 command.dispatchduty allow # Individual
add_principal group.dispatch command.dispatchduty allow # Group inheritence

Development

If you wish to make changes or build yourself you can clone the repository with git clone git@github.com:Mojito-Fivem/npwd-dispatch.git then install the dependencies with yarn build or npm i.

You can either build the project with yarn build or alternatively, you can use yarn watch to put webpack in watch mode so that it will automatically rebuild after any changes you make.