Giter Site home page Giter Site logo

npwd-dispatch's Introduction

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 [email protected]: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.

npwd-dispatch's People

Contributors

itztrivial avatar liamdormon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

npwd-dispatch's Issues

onDropped not working

Me again. I think the onDropped event doesnt work properly. It doesnt take me out of the dispatch. I even put a console.log in there to check if it does anything, but theres no action, when I commit suicide.

Thanks for your effort.

No message sent, when no dispatchers online

Hello there,

when using the dispatch script, calling the emergency number wiht no dispatchers online sends the caller a message, that no operator is available right now.
Looking at the code the same should happen when texting the number, but for me only calling the emergency number works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.