CQC-Mugshot is a mugshot system for use with QB servers to allow players to take pictures of suspects and then have them uploaded to a webhook.
- Add the cqc-mugshot folder into your resources folder
- Add The Following Line to qb-target>config.lua>Config.BoxZones (change the location etc as needed)
-- CQC-Mugshot
['CQCMugshot'] = {
name = 'CQCMugshot',
coords = vector3(-556.26, -132.99, 33.75),
debugPoly = false,
length = 0.50,
width = 0.65,
heading = 131.24,
maxZ = 34.30,
minZ = 33.75,
options = {
{
icon = 'fas fa-camera',
label = 'Take Suspects Mugshots',
job = {
['police'] = 0,
['sast'] = 0,
},
event = 'cqc-mugshot:client:takemugshot',
type = 'client'
},
},
distance = 2.0,
},
- Teleports player into correct area
- All client sided to improve performance
- Mugshot Board with players information on
- Automatically takes and uploads the images to a discord webhook
- Highly configurable
- Supports all MLOs via the config also has an option for no MLO's which TP's suspects to an IPL and back
- QB Callback to request latest mugshots on that session for a citizenID
Lassemc475 - https://github.com/Lassemc475/fivem-scripts/tree/master/vrp/lmc_mugshot Used for understanding how the mugshot board works
- QBCore - https://github.com/qbcore-framework
- QB-Target - https://github.com/BerkieBb/qb-target
- screenshot-basic - https://github.com/citizenfx/screenshot-basic