[PAID] [STANDALONE] Night Shifts MDT - Early Access

Created with passion by Nights Software

Night Shifts - A customisable MDT for FiveM (Early Access!)

Disclaimer: This resource is in Early Access stages. Updates can require you to re-install the resource. This resource can contain bugs, we appreciate any feedback towards this resource. Please follow the steps in the documentation when installing this resource.

Videos (Showcase & Teaser)

SHOWCASE (v0.9.8)

TEASER

Description

Night Shifts - Mobile Data Terminal (EARLY ACCESS v0.9.2)

Welcome to Night Shifts - MDT, a customizable MDT system for your community. Whether you’re running a police, fire, or EMS department, Night Shifts provides a range of features to help you manage your operations. Our MDT is configurable to fit the needs of emergency services in any country.

Civilian Side

The civilian side of the MDT includes features such as an emergency services hotline, a council/city hall registry for managing civilians, and a DVLA/DMV registry for managing vehicles. You can edit your civilians and vehicles, and even add custom profile pictures for each one.

Emergency Services Side

On the emergency services side, you can manage your shift and status, select your department and sub-department, and trigger a panic button in case of an emergency. The emergency hotline allows you to receive and locate emergency calls, while the Police National Computer (PNC) lets you search for people, vehicles, and records. You can also create reports for police, fire, and ambulance services, and view statistics for your department.

Server Owner Features

If you’re a server owner, Night Shifts gives you even more control over your MDT system. You can configure ANPR camera locations, fire station alarms, images and sounds in the NUI folder, language settings, and more. You can also customize menu names, MDT title, and text settings, and even adjust cooldowns for blips and calls. Night Shifts also allows you to create configurable departments, sub-departments, ranks, roles, and access levels, ensuring that your MDT system is tailored to your community’s needs.

In short, Night Shifts is a powerful tool for managing your emergency services operations. With its customizable features and easy-to-use interface, Night Shifts makes it easier than ever to keep your community safe and secure.

Features

Civilian Side

Emergency Services Hotline

  • Call 999/911/112 and provide detailed information about what you require.

Council / City Hall

  • Register your civilians
  • Edit your civilians
  • Add a custom profile picture to your civilian registry

DVLA / DMV

  • Register your vehicles, which is connected to one of your civilians
  • Edit your vehicles
  • Add a custom vehicle picture to your vehicle registry

PROPERTIES

  • Add/edit/remove properties like houses, commercial buildings and more.

Emergency Services Side

Battery & Signal

  • Charge your MDT battery in vehicles or interiors
  • Signal based on your ping

Shift & status

  • Select your department, with access based on Discord roles
  • Select your sub-department
  • Toggle your shift
  • Select your status
  • Trigger panic button
  • Change your callsign

Emergency Hotline

  • Receive emergency calls
  • View (archived) calls
  • Locate and track calls with a regular waypoint
  • Add/read call notes

Police National Computer (PNC)

  • Person Search
  • Vehicle Search
  • Record Search
  • Fine Search
  • Property Search
  • Add records via Person Search
  • Add fines via Person Search
  • Edit markers via Person Search
  • Edit BOLO via vehicle Search
  • View active person warrants
  • Locate active person warrants
  • View active ANPR registrations
  • Locate active ANPR registrations
  • Report sightings for wanted people or ANPR registered vehicles

Unit overview (Control / Dispatch)

  • Overview units (See a table of rows with all kinds of shift data, location data and more of each user on shift)
  • Track units
  • Dispatch units to calls
  • Request backup
  • Send dispatch messages
  • Fleet management
  • Assign units to fleet vehicles

Operations

  • Create reports for police, fire and ambulance
  • Search & view reports by query or date
  • Read police, fire and ambulance guidelines
  • Manage training and certificates for units.

Statistics

  • View general statistics

Server Owner Side

  • Configurable ANPR camera locations (Fictive, you can find a camera object script or MLO at third parties)
  • Configurable fire station alarms, triggered upon each call for the fire service
  • Configurable images in the NUI images folder, each with a different purpose
  • Configurable sounds in the NUI sounds folder, each with a different purpose
  • Configurable language in the config folder
  • Configurable handbooks in the config folder
  • Configurable and self-writable inventory item checks in c_functions.lua
  • Configurable postal script in c_functions.lua or use our recommendation nearest-postal
  • Configurable commands & hotkeys
  • Configurable menu names, MDT title and loads more text settings
  • Configurable cooldowns for blips, calls and loads more settings
  • Configurable statuses
  • Configurable styles in styles.css
  • Configurable departments, sub-departments, ranks, roles and access levels
  • Language support.
  • And loads more to configure…

v0.9.3 - Early Access released on 14/07/2023
v0.9.7 - Early Access released on 18/11/2023
v0.9.8 - Early Access released on 19/01/2024

Free updates for script owners.

Obtain the resource via our webstore.

Direct → https://store.nights-software.com/package/5667103
Homepage → https://store.nights-software.com

Installation Documentation

Dependencies (Download these during the documentation installation guide!)

Our other resources:

[& more…](https://store.nights-software.com/ :globe_with_meridians:)

Code accessible Partially
Subscription based No
Lines (approximately) 8k
Requirements None
Support Yes (Support button on https://store.nights-software.com)
5 Likes

Will future updates support QBCore? If not does the script allow us to modify key functions to integrate our own frameworks?

We are working on exports allowing you to push key data to your database saving/connecting the character / vehicle in QB/ESX. It’s not in that stage of development yet, but we have it on the list of things to research whether it’s doable.

Not autorised discord link in desc chang link on https://ns.ea-rp.com

Thanks for the heads up. :t_rex:

No problem :slight_smile: just on profile you can, not in topic, is fivem rules

Release of EA version 0.9.3

NS-MDT Patch notes for v0.9.3

- Added serverside database table builder, automatically building your datatables if they don't exist yet.
- Added a serverside table unicode check function, to assign the right unicode to the old structure. This will be removed in the next update.
- Added a civilian counter icon to unit overview.
- Added a tow counter icon to unit overview.
- Added the option to set the MDT's keybinds through the FiveM Keybind Settings.
- Added multiple functions in s_functions.lua allowing you to fetch player, vehicle and call data when it has been generated and updated.
- Added the option to enable or disable the HUD.
- Updated the styles for the icons representing active charge and active shift. 
- Updated the code logic for loading and initializing the MDT, should work faster now.
- Fixed the backdrop on the Emergency Call Screen, for when people were spamming it along with escape.
- Fixed a missing config message variable: NoAccessToMDT = "You seem to be missing the required discord roles to access the MDT.",
- Fixed a nil error on a client function when the server owner has not defined any ranks and roles in a department.
- Fixed the background for the fictive MDT tablet on screen, not stretching with it if it's widescreen.
- Fixed players instantly repositioning when closing the MDT, replaced it with more solid animations.
- Fixed an issue where departmentTypes were not used for displaying amounts of units active correctly.
- Fixed a webhook typo causing some notifications fail to push to the right channels in s_functions.lua.

Night Shifts - MDT Update v0.9.7 (The ANPR update)

NS-MDT Patch notes for v0.9.7

- Added an in vehicle ANPR system with a HUD allowing you to read number plates front-rear which auto-check the ANPR database for registered plates.
- Added a config setting to add/remove/edit vehicles suitable for ANPR.
- Added a popup HUD for ANPR hits in-vehicle.
- Added a soundfile to provide sound to an ANPR hit in-vehicle.
- Added CSS variables to set colors for HUDs.
- Added a command to manually enable/disable the in-vehicle ANPR system. (Shows/Hides the HUD and enables/disables functionality)
- Added the option to call for tow services at emergency calls.
- Added the display of a request for tow in the emergency hotline overview (call pages).
- Added colours to the police, ambulance, fire and tow icons. (styles.css)
- Added a loading UI element + backend allowing the UI to render more smoothly.
- Added an automatic database cleanup protocol at the start of the script. Deleting all (old) database calls, operation reports, police records and fines which contain over 250 entries, preserving the latest 250 entries. 
- Added cache versioning to reduce amount of data transferred, should stop timeouts occurring on servers with 30+ players due to stacking events.
- Added a countdown timer for active call display closure.
- Added functions to server.lua replacing repeated code.
- Fixed a bug with active call display on screen where the description would stretch the whole card, now limited to 500 chars in 10 (new)lines.
- Fixed a bug with checking duplicate entries for vehicle registration.
- Fixed missing language support for the word "Unknown" on several occurances.
- Fixed a bug upon refreshing allowing the user to click and bug out the MDT UI.
- Fixed a broken link to the documentation in server.lua.
- Adjusted the config.lua to match v0.9.7 & it's new additional variables.
- Adjusted all css colour styling to rgba to enhance consistency in the code.
- Adjusted debug/info messages, added some.
- Adjusted the refresh rate to 5s, instead of 2.5s. This is experimental.
- Adjusted ns_mdt_call table: added row tow_required. Automatically adjusted on script start if your database is still valid, otherwise re-install the script AND the database tables.
- Adjusted datatables.sql & droptables.sql to match v0.9.7
- Adjusted README.md

Product: Night Shifts - MDT
New version: v0.9.8
Features/patch notes:

- Added multi-guild support since Discord API v2.0.0.
- Added a training section (under Operations) where users with the required access level can assign certificates of training to users. The MDT owner can configure what trainings are available and MDT users can view their trainings & certificates.
- Added a management panel allowing you to monitor and maintain most MDT entries, this panel is accessible for configured Discord roles.
- Added a Fleet management system: Add, edit and delete vehicles to departments and use the organised section under unit overview to manage your fleets. Assign vehicles as in-service and display it all at your desire. Properties: Vehicle name, spawn name, roofcode/callsign, in service, plate, dept, sub-dept and pictures. Access to edits and additions is defined by a configurable access level setting.
- Added dispatch options to attach and detach individuals to fleet vehicles.
- Added animations to several buttons increasing user friendliness and upgrading the interface.
- Added a button for units/dispatch to quickly create a call via the emergency hotline & unit overview section.
- Added the option to change a unit's callsign in unit overview via actions for dispatchers.
- Added success notifications for assigning units to calls & setting status by dispatchers. (Improved user friendliness)
- Added the option to assign active units to calls via the emergency call system with dispatch access level permission.
- Added translations.lua to prevent you having to adjust the translations all the time on updates. 
- Added extensive language support for: EN, NL, DE, PL. (More coming as we find native speakers for more languages).
- Added the option to configure whether you want to use saved callsigns or config prefixed & preset callsigns.
- Added column last_callsign to ns_mdt_user.
- Added table ns_mdt_fleet.
- Added the option to click a microphone icon, enabling key input (radio controls for example) until manually disabled again.
- Added config options for enabling or disabling the following HUD elements separately: Icons, location.
- Added a cooldown of 1 minute on making emergency calls.
- Added roofcode/callsign of the fleet vehicle to the unit overview.
- Added sirens attribute in the unit overview to display wether a units' siren is on/off.
- Decreased the size of text in multiple interface sections, increasing user friendliness and readibility.
- Updated datatables.sql & droptables.sql.
- Removed date of birth fixing query. Would cause issues for some environments.
- Fixed an issue with slow loading: Deleting unused data over 100 entries in the database.
- Fixed an issue where being on foot would not display as a foot icon in the unit overview.
- Fixed an issue where booting up the MDT too fast would cause the homepage to bug out.
- Fixed an issue where statistics where not translatable.
- Fixed an issue where it will now fetch all roles from given guilds in the config.
- Fixed an issue with the registration date for vehicles.
- Fixed an issue where when a player disconnected it would not request a unit data update.
- Fixed synchronization delay on registering, updating and deleting processes.
- Fixed an issue where active calls would not display on pressing the active call display hotkey.
- Fixed overflow of EMS call elements which now wrap when text is longer (wider) than the html element.

The World Crime Event Update :cowboy_hat_face:

NPC’s will now (optionally/configurable) report crimes committed by players in the form of an emergency call. They will report shootings, fights and excessive vehicle speed offenses. Discover more new features and fixes below!

Product: Night Shifts - MDT
New version: v0.9.9
Features/patch notes:

NS MDT Patch notes for v0.9.9

- Added an active dispatch toggle on the unit overview page (& HUD element), which displays whether dispatch is active or not. Functionalities remain the same. (Self-service remains possible).
- Added config settings for displaying certain sidebar menus (or not). Please mind that some need to be always shown for the script to work as intended.
- Added config settings for customizing the beep sound (Dispatch actions).
- Added OnReceivedEmergencyCall(callData) to c_functions.lua.
- Added world crime events (configurable) which NPC's will call in as an emergency - Road crimes (Speeding), Fights (Melee combat), Shootings.
- Added a list of fictive names, used for generating NPC names on world crime event reports.
- Added total count of Active / Archived calls to the title on the emergency hotline page.
- Fixed editing callsigns which would fail due to a missing update request.
- Fixed blank MDT screen on first open.
- Fixed an issue where switching sub-departments and then departments would cause a blank screen on the MDT.
- Fixed an issue where the ID card prop would not delete.
- Fixed dispatch messages from stacking up on screen causing the view to be blocked. Alternatively added a queue for dispatch messages. Also added output for dispatch to see that their message has been broadcasted.
- Fixed an issue where when a new call was created, assigning units would fail due to a nil value on calltrackedby.
- Fixed margin on the hotline picture.
- Adjusted some config/translations.lua variables.
- Adjusted export (added 1 bool as last parameter: isSilent) to: exports.night_shifts:TriggerAlarm(isEmergency --[[ bool ]], isPoliceRequired --[[ bool ]], isAmbulanceRequired --[[ bool ]], isFireRequired --[[ bool ]], isTowRequired --[[ bool ]], description --[[ string ]], coordinates --[[ Vector3 ]], isSilent --[[ bool ]]). This export will not notify the "person who triggers the alarm" if isSilent = true.