githubEdit

👮qb-policejob

Obey & survive!

Introduction

  • This resource manages police functions and interactions

  • Objects for police to place down via qb-radialmenu such as traffic cones and spike strips

  • Police stash, garage and armory

  • Cuffing players functions

  • Evidence system including blood DNA drops and fingerprints

  • Anklet Tracker for police to track players

Configuration

General

Config = {}
Config.LicenseRank = 2 -- minimum rank need to grant weapon licenses to players
Config.HandCuffItem = 'handcuffs' -- item name to check for when cuffing
Config.PoliceHelicopter = "POLMAV" -- helicopter model name to spawn

Locations

Config.Locations = {
    ["duty"] = { -- locations to clock on/off duty
        [1] = vector3(440.085, -974.924, 30.689),
        [2] = vector3(-449.811, 6012.909, 31.815),
    },
    ["vehicle"] = { -- locations to withdraw vehicles
        [1] = vector4(448.159, -1017.41, 28.562, 90.654),
        [2] = vector4(471.13, -1024.05, 28.17, 274.5),
        [3] = vector4(-455.39, 6002.02, 31.34, 87.93),
    },
    ["stash"] = { -- locations to access stash
        [1] = vector3(453.075, -980.124, 30.889),
    },
    ["impound"] = { -- locations to access the police impound
        [1] = vector4(436.68, -1007.42, 27.32, 180.0),
        [2] = vector4(-436.14, 5982.63, 31.34, 136.0),
    },
    ["helicopter"] = { -- locations to withdraw helicopters
        [1] = vector4(449.168, -981.325, 43.691, 87.234),
        [2] = vector4(-475.43, 5988.353, 31.716, 31.34),
    },
    ["armory"] = { -- locations to open the armory
        [1] = vector3(462.23, -981.12, 30.68),
    },
    ["trash"] = { -- locations to add items to the trash
        [1] = vector3(439.0907, -976.746, 30.776),
    },
    ["fingerprint"] = { -- locations to access fingerprint scanner
        [1] = vector3(460.9667, -989.180, 24.92),
    },
    ["evidence"] = { -- locations to access evidence lockers
        [1] = vector3(442.1722, -996.067, 30.689),
        [2] = vector3(451.7031, -973.232, 30.689),
        [3] = vector3(455.1456, -985.462, 30.689),
    },
    ["stations"] = { -- locations for map blips and labels
        [1] = {
            label = "Police Station",
            coords = vector4(428.23, -984.28, 29.76, 3.5)
        },
        [2] = {
            label = "Prison",
            coords = vector4(1845.903, 2585.873, 45.672, 272.249)
        },
        [3] = {
            label = "Police Station Paleto",
            coords = vector4(-451.55, 6014.25, 31.716, 223.81)
        },
    },
}

Armory

Vehicles

Vehicle settings

Vehicle trunk items

Objects

Security cameras

Police radars

Evidence

Evidence system

  • Random drop chance of bullet casings when player is shooting

  • Random chance of fingerprints left behind when player is not wearing gloves

  • Player statuses set when doing certain actions

Configuration

  • Found in qb-policejob/client/evidence.lua

Usage example

circle-exclamation

Setting statuses

Adding blood drop

Adding fingerprint drop

Commands

chevron-right/911p [message] - sends an alert to the policehashtag

This command sends an alert to all players with the job 'police'. The alert will contain the given message and a blip is added to the police player's map at your current location.

Permission level: user

  • message - (required) The message to send with the alert

chevron-right/spikestrip - Place a spike striphashtag

Places a Spike Strip object on the ground. The player must have the job of 'police' and be on duty to use.

Permission level: user

chevron-right/grantlicense [id] [license] - give a player a licensehashtag

Gives a player with the given id the license of the given license type.

This command can only be used by players with the job of 'police' above the minimum grade as set by Config.LicenseRank (Default is grade 2 and above).

Permission level: user

  • id - (required) The id of the player

  • license - (required) The license type (E.g. "weapon" or "driver")

chevron-right/revokelicense [id] [license] - remove a player's licensehashtag

Removes a license of the given license type from a player with the given id.

This command can only be used by players with the job of 'police' above the minimum grade as set by Config.LicenseRank (Default is grade 2 and above).

Permission level: user

  • id - (required) The id of the player

  • license - (required) The license type (E.g. "weapon" or "driver")

chevron-right/pobject [type] - allows officer to spawn an objecthashtag

Allows a player with the job of 'police' to spawn an object

Permission level: user

  • type - (required) The object type. Available types:

    • cone - a traffic cone

    • barrier - a roadblock barrier

    • roadsign - a road sign

    • tent - a gazebo for crime scenes

    • light - a work light

    • delete - delete an object

chevron-right/cuff - cuff the nearest playerhashtag

This command will hard cuff the nearest player (prevents movement) .

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/sc - soft cuff the nearest playerhashtag

This command will soft cuff the nearest player (allows movement).

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/escort - escort the nearest playerhashtag

This command will escort the nearest player.

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/callsign [name] - allows officer to set a callsignhashtag

Allows a player with the job of 'police' to set their callsign. The callsign is visible as the name of the player's blip on the map.

Permission level: user

  • name - (required) the callsign to be used

chevron-right/jail - sends nearest player to jailhashtag

This command will send the nearest player to jail. A menu will open allowing the officer to set the jail time.

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/unjail [id] - unjail a playerhashtag

Unjail a player with the given id

Can only be used by players with the job of 'police'

Permission level: user

  • id - (required) the id of the player

chevron-right/clearcasings - clears bullet casings in the areahashtag

Clears any bullet casings with 10.0 units of your current location.

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/clearblood - clears blood drops in the areahashtag

Clears any blood drops with 10.0 units of your current location.

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/seizecash - seize cash from the nearest playerhashtag

Seize cash from the nearest player.

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/cam [id] - allows officer to see cam footage from selected spotshashtag

Allows a player with the job of 'police' to view security cameras. Security camera locations can be set up in the config file of qb-policejob. See Config.SecurityCameras.

Permission level: user

  • id - (required) the id of the camera

chevron-right/flagplate [plate] [reason] - allows speed cameras to find a plate flaggedhashtag

Allows speed cameras that can be set up in the config to find a flagged plate. See Config.Radars

Permission level: user

  • plate - (required) the plate to be flagged

  • reason - (required) the reason for the flag

chevron-right/unflagplate [plate] - removes the flag from the platehashtag

Removes the flag on the plate so cameras will no longer pick up the plate.

Permission level: user

  • plate - (required) the plate to be unflagged

chevron-right/plateinfo [plate] - shows the info of the platehashtag

Shows whether a plate is flagged and gives the reason if so.

Permission level: user

  • plate - (required) the plate to check

chevron-right/depot [price] - allows officer to impound vehicle for a pricehashtag

Allows a player with the job of 'police' to send a vehicle to the impound for the given price

Permission level: user

  • price - (required) the price set for removing vehicle from depot

chevron-right/impound - impounds a vehicle without a pricehashtag

impounds a vehicle without a price

Can only be used by a player with the job of 'police'

Permission level: user

chevron-right/paytow [id] - pays the tow driver $500hashtag

Pays the player with the given id $500. The player being paid must have the job of 'tow'.

Permission level: user

  • id - (required) the id of the player being paid

chevron-right/paylawyer [id] - pays a lawyer $500hashtag

Pays the player with the given id $500. The player being paid must have the job of 'lawyer'.

Permission level: user

  • id - (required) the id of the player being paid

chevron-right/anklet - adds a tracking device to the closest playerhashtag

Adds a tracking device to the closest player.

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/ankletlocation [cid] - shows the location of the playerhashtag

Shows the location of the player with the given cid

Can only be used by players with the job of 'police'

Permission level: user

  • cid - (required) the citizen id of the player being checked

chevron-right/takedrivinglicense - takes the players drivers licensehashtag

Takes the driving license of the closest player

Can only be used by players with the job of 'police'

Permission level: user

chevron-right/takedna [id] - takes the players dnahashtag

Takes the dna of a player with a given id. Requires an empty evidence bag.

Permission level: user

  • id - (required) the id of the player

Items

  • handcuffs - Cuffs a player on use

Last updated

Was this helpful?