feat: major overhaul with new features and performance updates V2#557
Open
LeSiiN wants to merge 263 commits into
Open
feat: major overhaul with new features and performance updates V2#557LeSiiN wants to merge 263 commits into
LeSiiN wants to merge 263 commits into
Conversation
added RegisterNUICallback
added ps-mdt:server:saveWeaponFlags
Added `SAVE_WEAPON_FLAGS` to `NUI_EVENTS.WEAPON`
changes from files to link, added hover for picture to make it bigger
changes stuff in cases.lua (sry)
added title and images to mdt_reports_evidence database ALTER TABLE mdt_reports_evidence ADD COLUMN title VARCHAR(255) NOT NULL DEFAULT '' AFTER reportid, ADD COLUMN images LONGTEXT NULL DEFAULT NULL AFTER stored;
added title and images to mdt_reports_evidence
added profile images as link not file and gallery, removed mugshot profile images as links not files gallery to add picture manually usage of mdt_citizen_gallery remove mugshot button ( broken rn )
added new callbacks
removed log entry for profile pic - fivemanage doesnt support links, only base64, so removed check for fivemanageupload
added title and images, fixed evidence in reports
added title and images, fixed evidence
added title and images, fixed evidence
added little icon in vehicles overview and added edit/zoom button
added this to UpdateVehicle:
if payload.image ~= nil then
updates[#updates + 1] = 'mdt_vehicle_image = ?'
values[#values + 1] = payload.image
end
changed picture to 108x108pxa and also added little icons per gun
added notes interactions
added check for ems - not allow ems to edit this note
added callbacks and streetname grabber
added callbacks and changed some sql stuff to match qbx housing
added entire new property modul to showcase info
added new events
removed german debug
fixed not allowing callsign changes
changed from property_name to property_id
changed from property_name to property_id
changed from property_name to property_id
changed SELECT citizenid to owner
changed picture to 108x108pxa and also added little icons per gun
fixed licenses not saving correctly
changes to how licenses are handled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚓 ps-mdt — Full Changes
✨ Highlights at a Glance
🆕 New Systems
🗓️ Court / DOJ Calendar
A complete calendar system for the justice department, integrated into the DOJ section.
court_*, trainings/meetings/other viatraining_*.scheduled → in_session → completed, including "adjourned"/"cancelled"/reopen transitions).mdt_court_hearingsandmdt_court_attendees.🎙️ Radio in the MDT (Push-to-Talk)
Players can talk on the radio even while the MDT is open and holding NUI focus.
🚑 EMS / Multi-Domain Support
The MDT is now domain-aware so it can serve both law enforcement and EMS from the same resource.
police(police + DOJ share calendar/map data) andems(its own separate workspace).Config.MedicalJobs/Config.MedicalJobTypevia the helpersIsEmsJob,GetDomainForJob,GetMdtDomain.🏠 Housing / Property Integration
Shows a citizen's owned properties directly in their record.
qbx_properties,ps-housing,qb-houses, plus acustommapping (incl. two-table joins).Config.Housing.system).Config.Housing.enabled = false).🟢 Officer Status
Lets officers set their own availability (e.g. Active / Busy) directly from the Map tab, fully synced in real time across every open MDT.
Config.OfficerStatus.list) — colors, labels and icons; new statuses can be added without touching any other file.mdt_officer_status.🔧 Reworked Systems
📹 CCTV Cameras
RECindicator, camera label.feed_coords,feed_rotation,feed_fovinmdt_cameras.📹 Dashcam (new within the camera system)
🗺️ Patrol & Live Tracking
mdt_patrols).map_patrols_view/map_patrols_manage/map_patrols_edit.📊 Dashboard Analytics
The dashboard gained a real statistics layer, served by dedicated server callbacks.
PD-prefix) and display.🏷️ Tag System (Citizens & Personnel)
leo/ems/allplus tag type includingcitizen.📋 Bulletin Board
mdt_bulletin_categories).mdt_bulletin_posts).👤 Citizen Record
3x Grand Theft Autoinstead of one line per report). Loaded on demand and paginated server-side — only the 20 most recent charge types are fetched initially, with a "Load 20 more" button to fetch further pages — so opening a heavily-charged citizen's profile never pulls their full history at once. Each line shows the report id, combined fine/time totals, and a charge-class badge (Felony/Misdemeanor/Infraction).🚗 Vehicle Record
mdt_vehicle_statuscolumn.🔫 Weapon Record
flags(JSON) column inmdt_weapons.🧾 Evidence (Records, Reports & Cases)
title,imagesonmdt_reports_evidence.🎨 UI, Immersion & Hardening
Config.Animation), cleanly removed on close.tipaction renders hover tooltips into<body>(position: fixed) so they're never clipped by scrolling/overflow parents — works around CEF clipping limits. Also used for the new Officer Status dots/badges and the Charges section.🗄️ Database Changes
New tables:
mdt_court_hearings,mdt_court_attendeesmdt_patrolsmdt_bulletin_categories,mdt_bulletin_postsmdt_officer_statusExtended tables (self-healing
ALTER … IF NOT EXISTSmigrations):mdt_cameras→feed_coords,feed_rotation,feed_fovmdt_weapons→flags(JSON)mdt_vehicles→mdt_vehicle_statusmdt_reports→lawyer_requestedmdt_reports_evidence→title,images⚙️ New Config Sections
Config.Court— reminder lead time, SMS sender, e-mail invites, auto-status, attendee groups (incl. EMS domain).Config.Radio— voice system, PTT fallback key, per-system triggers.Config.Housing— system preset (qbx/ps/qb/custom) + column mapping.Config.Dashcam— update interval and per-model positions.Config.Animation— tablet prop dict/name and attach offsets.Config.OfficerStatus— selectable statuses (id/label/color), default status, note length cap, change cooldown.Camera.HeadingOffset&Camera.Overlay— overlay/REC settings.✅ Compatibility & Notes
pswrapper).ox_lib,oxmysql,lb-phone(court reminders), a voice system (pma-voice / SaltyChat / YACA for the radio feature).📌 Pre-Merge Checklist
sql/imported (or self-healing startup awaited)Config.Housing.systemset to the housing resource in useConfig.Radio.VoiceSystemverifiedConfig.MedicalJobs/Config.MedicalJobTypeset for the EMS domainConfig.OfficerStatus.listreviewed (defaults: Active/Busy)court_*,training_*,map_patrols_*) granted in the permissions management