LeSiiN / qb-policejob

Police Job & Evidence System For QB-Core :police_officer: :policewoman:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qb-policejob

This is the Version of 31.12.2023 / 1.3.5 Nothing got changed, instead of the evidence! Please go through the Config, i added some new things!

Thats a edit by LeSiiN <3

Dependencies

Installation

Manual

  • Download the script and put it in the [qb] directory.
  • Add the following code to your server.cfg/resouces.cfg
ensure qb-core
ensure qb-policejob
  • Place the next code inside your items.lua
rag                         = { name = 'rag', label = 'Rag', weight = 100, type = 'item', image = 'rag.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Could get Handy.' },
  • Place the image inside your images folder in your inventory.
  • Add the following code to your app.js of your inventory (31.12.2023 Version -> line 365)
        case "filled_evidence_bag":
            if (itemData.info.type == "casing") {
                return `<p><strong>Evidence material: </strong><span>${itemData.info.label}</span></p>
                <p><strong>Type number: </strong><span>${itemData.info.ammotype}</span></p>
                <p><strong>Caliber: </strong><span>${itemData.info.ammolabel}</span></p>
                <p><strong>Serial Number: </strong><span>${itemData.info.serie}</span></p>
                <p><strong>Crime scene: </strong><span>${itemData.info.street}</span></p><br /><p>${itemData.description}</p>`;
            } else if (itemData.info.type == "bullet") {
                return `<p><strong>Evidence material: </strong><span>${itemData.info.label}</span></p>
                <p><strong>Type number: </strong><span>${itemData.info.ammotype}</span></p>
                <p><strong>Bullet: </strong><span>${itemData.info.ammolabel}</span></p>
                <p><strong>Serial Number: </strong><span>${itemData.info.serie}</span></p>
                <p><strong>Crime scene: </strong><span>${itemData.info.street}</span></p><br /><p>${itemData.description}</p>`;
            } else if (itemData.info.type == "vehiclefragement") {
                return `<p><strong>Evidence material: </strong><span>${itemData.info.label}</span></p>
                <p><strong>Type number: </strong><span>${itemData.info.ammotype}</span></p>
                <p><strong>Serial Number: </strong><span>${itemData.info.serie}</span></p>
                <p><strong>Color: </strong><span>${itemData.info.rgb}</span></p>
                <p><strong>Crime scene: </strong><span>${itemData.info.street}</span></p><br /><p>${itemData.description}</p>`;
            } else if (itemData.info.type == "blood") {
                return `<p><strong>Evidence material: </strong><span>${itemData.info.label}</span></p>
                <p><strong>Blood type: </strong><span>${itemData.info.bloodtype}</span></p>
                <p><strong>DNA Code: </strong><span>${itemData.info.dnalabel}</span></p>
                <p><strong>Crime scene: </strong><span>${itemData.info.street}</span></p><br /><p>${itemData.description}</p>`;
            } else if (itemData.info.type == "fingerprint") {
                return `<p><strong>Evidence material: </strong><span>${itemData.info.label}</span></p>
                <p><strong>Fingerprint: </strong><span>${itemData.info.fingerprint}</span></p>
                <p><strong>Crime Scene: </strong><span>${itemData.info.street}</span></p><br /><p>${itemData.description}</p>`;
            } else if (itemData.info.type == "dna") {
                return `<p><strong>Evidence material: </strong><span>${itemData.info.label}</span></p>
                <p><strong>DNA Code: </strong><span>${itemData.info.dnalabel}</span></p><br /><p>${itemData.description}</p>`;
            }

Features

  • Classical requirements like on duty/off duty, clothing, vehicle, stash etc.
  • Citizen ID based armory (Whitelisted)
  • Fingerprint test
  • Evidence locker (stash)
  • Whitelisted vehicles
  • Speed radars across the map
  • Stormram
  • Impounding player vehicle (permanent / for an amount of money)
  • Integrated jail system
  • Bullet casings
  • GSR
  • Blood drop
  • Evidence bag & Money bag
  • Police radar
  • Handcuff as an item (Can used via command too. Check Commands section.)
  • Emergency services can see each other on map
  • Evidence can be checked via weapon_flashlight ( can be picked up )
  • Criminals can remove evidence
  • Evidence automatically removes after 30Min. (Performance thing)

Commands

  • /spikestrip - Places spike strip on ground.

  • /pobject [pion/barier/schotten/tent/light/delete] - Places or deletes an object on/from ground.

  • /cuff - Cuffs/Uncuffs nearby player

  • /escort - Escorts nearby plyer.

  • /callsign [text] - Sets the player a callsign on database.

  • /jail [id] [time] - Sends a player to the jail.

  • /unjail [id] - Takes the player out of jail.

  • /clearblood - Clears nearby blood drops.

  • /clearcasings - Clears nearby bullet casings.

  • /clearholes - Clears nearby Bullet Holes drops.

  • /clearfragements - Clears nearby Vehicle Fragements drops.

  • /clearscene - Clears all nearby evidence drops.

  • /seizecash - Seizes nearby player's cash. (Puts in money bag)

  • /sc - Puts soft cuff on nearby player.

  • /cam [cam] - Shows the selected security cam display.

  • /flagplate [plate] [reason] - Flags the vehicle.

  • /unflagplate [plate] - Removes the flag of a vehicle.

  • /plateinfo [plate] - Displays if a vehicle is marked or not.

  • /depot [price] - Depots nearby vehicle. Player can take it after paying the cost.

  • /impound - Impounds nearby vehicle permanently.

  • /paytow [id] - Makes payment to the tow driver.

  • /paylawyer [id] - Makes payment to the lawyer.

  • /radar - Toggles the police radar.

  • /911 [message] - Sends a report to emergency services.

  • /911r [id] - Used to respond the emergency alerts.

  • /911a [message] - Sends an anonymous report to emergency services (gives no location).

  • /anklet - Places anklet (tracking device) on nearby player.

  • /removeanklet [citizenid] - Removes the anklet from player.

  • /ebutton - Used to respond an emergency alert.

  • /takedrivinglicense - Takes the driving license from nearby player.

  • /takedna [id] - Takes a DNA sample from the player.

New Items

  • rag - Allows Criminals to delete nearby Evidence.

About

Police Job & Evidence System For QB-Core :police_officer: :policewoman:

License:GNU General Public License v3.0


Languages

Language:Lua 91.2%Language:HTML 3.6%Language:CSS 2.8%Language:JavaScript 2.4%