Git Product home page Git Product logo

cqc-mugshot's Introduction

CQC-MUGSHOT

Banner

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.

INSTALLATION GUIDE

  1. Add the cqc-mugshot folder into your resources folder
  2. 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,
	},

FEATURES

  • 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

NOTE

The config option Config.CQCMDT is built in for future releases from CQC. We might release the MDT we are working on. If you want to pull the images into an existing MDT system this config option simply creates a server object with the citizenid and the images urls which can be pulled on demand.

IMAGES

screenshot screenshot (1) screenshot (2)

CREDIT

Lassemc475 - https://github.com/Lassemc475/fivem-scripts/tree/master/vrp/lmc_mugshot Used for understanding how the mugshot board works

DEPENDENCIES

cqc-mugshot's People

Contributors

carmomeister avatar eoinmcbennett avatar quinn101 avatar realsixgrams avatar schbang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cqc-mugshot's Issues

?

Seems to not be working for me, I've reconfigured it to work for Gabz MRPD but can't get it working, no 3rd eye interaction or anything, the test command isn't even working. Used Debug for the boxzone and it's in the right spot

[qb-target] Attempt to index a nil value

Very nice script, but I'm unable to use qb-target with this script. I've followed all instructions, but I keep getting the error attempt to index a nil value (global QBCore).

/testmugshot and /testmugshotself work perfectly.

images not uploading

so the images are not being sent to the channel and when pd does /jail they don't get sent first for a mugshot and then to jail they go straight to jail. and also when I do /testmugsahotself the images don't get uploaded

qb-target

only way to get it to work is to /testmugshot /testmugshotself qb-target noy letting you interact with it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.