feat: mdt-citizen-vehicle-weapon-improvements#548
Closed
LeSiiN wants to merge 48 commits into
Closed
Conversation
- Config.Weapons is new. ( Which Weapons should be allowed to be registered manually )
- Added fingerprint and dna fields to the Citizen interface - Both fields included in client-side filter and searchCitizens SQL query via JSON_EXTRACT from players.metadata - Extended SQL WHERE clause (8 params instead of 6), with explicit Lua loop mapping for fingerprint/DNA - Normalized vehicle plate search: whitespace stripped and uppercased on frontend and DB side (REPLACE/UPPER) - Split plateTerm and nameTerm in searchVehiclesForReport for correct case handling - Added minimum query length guard (< 2 chars) to vehicle search input
added "weapons_add" as a new permission
changed search function to allow spaces/big/small letters
added "weapons_add" into permissions
added fingerprint and dna into getCitizens callback
added 'weapons_add' as a new permission
added 'weapons_add' as a new permission and added new events
added 'weapons_add' as a new permission
added new permission, changed ownership history
…s (now in config) removed unwanted console.logs, changed notes and removed weaponOptions (now in config)
added `flags` JSON DEFAULT NULL,
changes to Weapons.svelte
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 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
Feat/mdt weapon tags improvments
Feat/mdt vehicle picture addition
Feat/mdt property infos
Feat/mdt links not files and gallery
Feat/mdt correct author
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.
Overview
This PR introduces three major improvements to the MDT system: enhanced citizen license management, extended search capabilities with fingerprint/DNA/plate normalization, and a full weapon registry module with CRUD support and ownership history.
Citizen license modal
descriptionfield toIssuableLicenseinterfaceCitizen & vehicle search
Fingerprint & DNA
fingerprintanddnafields to theCitizeninterfacesearchCitizensSQL query viaJSON_EXTRACTfromplayers.metadataPlate normalization
REPLACE/UPPER)plateTermandnameTerminsearchVehiclesForReportfor correct case handlingWeapon registry
Frontend
PersonSearchModal, and notesauthServiceConfig.WeaponsBackend
EnsureProfileExistscalled before insert/update insaveWeaponInfosaveWeaponInfoandgetWeaponOwnershipHistorywithmdt_profilesjoinmanual_entry) and update (ownership_transfer)