Metal Detectors
To secure police stations, courtrooms, and search checkpoints, this module handles scanning individuals for metal objects, weapons, and blades.
1. Handheld Metal Detector
- Search Tool: Officers can use the
handheld_detectoritem to perform a quick sweep over a suspect. - Beeping Alarm: Emits an audible scanner sound. If the suspect carries any item configured in
Config.MetalDetector.Weapons(firearms, knives, ammunition, etc.), the wand emits a loud alarm.
2. Checkpoint Metal Detectors
- Static Security Gates: Placing a checkpoint gate object at an entrance (like Mission Row lobby) automatically scans any citizen passing through the frame.
- Alert Notifications: If a citizen walks through carrying metallic weapons, the gate flashes red and sounds an alarm. Officers inside the station receive a dispatch alert.
How to Use In-Game
Scanning a Suspect with the Handheld Detector:
- Ensure you have the
handheld_detectoritem in your inventory. - Stand close to the suspect, drag the item to your use slot, or use the target interaction menu and select "Scan with Metal Detector".
- An animation will play sweeping the wand over the player.
- Outcome: A success tone plays if clean. A warning alarm triggers if they have a weapon in their pockets.
Placing a Checkpoint Gate:
- Admins can place a static metal detector prop (
ch_prop_ch_metal_detector_01a) via the world builder. It will instantly monitor the passage area.
3. Sound Customization
You can choose to use the native GTA V frontend sounds, completely disable them, or play custom sound files through a sound resource (interact-sound or xsound).
Configuration Options
These settings are defined under Config.MetalDetector.Sound in shared/config_detection.lua:
UseGTASound: Set tofalseif you want to completely disable the built-in GTA V frontend sound effects.UseExternalSound: Set totrueto play custom external sound files using the sound bridge.
Adding Custom Sounds for interact-sound
- Save your custom sound files in
.oggformat (e.g.,metal_alarm.oggandmetal_clean.ogg). - Place the files in your
interact-soundresource directory:interact-sound/client/html/sounds/ - Make sure the files are registered in
interact-sound/fxmanifest.luaunder thefilesarray (usually matched via'client/html/sounds/*.ogg'). - Set the sound names and desired volume in
shared/config_detection.lua:ExternalSoundAlarm = 'metal_alarm', -- filename without extension ExternalSoundClean = 'metal_clean', -- filename without extension ExternalSoundVolume = 0.25, -- Adjust volume between 0.0 and 1.0
Adding Custom Sounds for xsound
- Save your custom sound files in
.oggor.mp3format (e.g.,metal_alarm.oggandmetal_clean.ogg). - Place the files in your
xsoundresource directory:xsound/html/sounds/ - Make sure the files are registered in
xsound/fxmanifest.luaunder thefilesarray (usually matched via'html/sounds/*'or similar). - Set the sound names and desired volume in
shared/config_detection.lua:ExternalSoundAlarm = 'metal_alarm', -- filename without extension ExternalSoundClean = 'metal_clean', -- filename without extension ExternalSoundVolume = 0.25, -- Adjust volume between 0.0 and 1.0
Megaphone & Shield
This module covers field tactical accessories, including the hand-held Megaphone and the physical Ballistic Shield.
Mugshot Gallery
The Mugshot & Photo Gallery system provides stations with booking photo capabilities, allowing officers to photograph arrested suspects, store booking records, and view them on the station database.