Introduction
A custom lb-phone app that lets citizens send emergency reports straight into more_dispatch, picking a department, typing a reason, a
Departments come straight from more_dispatch's own MS.Jobs table, so this app is a phone-based front door to a dispatch board you've already set up — not a replacement for it.
Before you start
more_lib, more_dispatch and lb-phone must all be installed and started first. Every faction you list in this app's MS.Jobs has to match a job key that already exists in more_dispatch's MS.Jobs, or dispatches sent from the app are silently dropped.
Features
- Registers itself as a custom lb-phone app (icon, price, screenshots) via AddCustomApp, with department cards built from more_dispatch's MS.Jobs
- Built-in profanity filter (MS.BadWords) on the reason field, plus a per-player send cooldown (MS.Settings.timeout)
- Sends straight into more_dispatch's CreateDispatch export with the player's name, gender, current coords and chosen reason, so it lands on the existing dispatch board
Requirements
more_dispatchresourcerequiredThe dispatch board this app feeds. Must be installed, started, and its MS.Jobs keys must match this app's MS.Jobs factions — CreateDispatch is called for every sent report.
more_libresourcerequiredShared library dependency of the "More Scripts" resource pack, loaded before this resource.
ESXresourcerequiredMS.Notify triggers the esx:showNotification event; server/main.lua also calls MORE.GetPlayerName and MORE.GetCharInfo (from more_lib) to build the dispatch's reporter name and gender.
lb-phoneresourcerequiredThe phone resource this app registers a custom app into via AddCustomApp; not declared as a fxmanifest dependency, so the client polls GetResourceState until it's started.
Last updated