[Release] Cops FiveM V1.4.4.1 (04/14/2018)





GitHub license

Cops_FiveM is a script for RP server mainly. It let servers to have a cops system with loadout, vehicles, inventory check, …
You can find the complete list with all the features here.


You can find the changelog here.

Community Support

A Discord server is available:



  1. Verify that you have installed the requirements from above.
  2. Download the latest version from the GitHub repository.
  3. Only copy the subdirectory police to the resources folder on your server.
  4. Edit config file as you want.
  5. Add start police in your server.cfg (make sure you start this resource after all dependencies).
  6. The first time when you enter the game you will need to add yourself to the police database.
    you can do this in your server console enter CopAddAdmin 1 press enter and you should receive a confirmation message.


When you restart your server you will see a mysql error inside your server console.

[ERROR] [MySQL] An error happens on MySQL for query "ALTER TABLE police ADD dept int(11) NOT NULL DEFAULT '0' {=}": Duplicate column name 'dept'

This is just confirmation that your new database column has been added.


  • /copadd ID : Add the player as cop to the database.
  • /coprem ID : Remove a player from the database.
  • /coprank ID Rank : To change the rank of a police officer.
  • /copdept ID Department : Add a player to a specific department id.

You can also use these commands with RCON (CopAdd / CopAddAdmin / CopRem / CopRank).
To see how to use them, just type the command you want without any parameter.


ID Name
0 Park Rangers
1 Los Santos Police Department
2 Sheriff’s Department
3 State Highway Patrol
4 Prison Department


ID Name
0 Trainee
1 Trooper
2 Master Police Officer
3 Sergeant
4 Lieutenant
5 Captain
6 Chief of Police
7 Admin Police Rank


If you are a developer and would like to contribute any help is welcome!.
The contribution guide can be found here.
(Readme, Contributing and Changelog files from by FiveM Script, thanks ^^).

Supported Scripts

you can find some supported scripts here.

Thanks to the whole community of FiveM which help to improve this script

[Request]Blips for all police (ESX)
[Release] Inventory System v2.1 (Personal Menu)
[EssentialMode 4] [FXServer] es_rp | _The_ Roleplay Gamemode [Beta-ish or so]
CopsFiveM question
[Release] Disable vehicles and peds
Map blips on police cars
[Request] Police Options without Essentialmode
[Request] jail script
[Cops FiveM] Jail/Arrest addon [Outdated]
[HELP] Permission or Whitelist for cops?
How to setup a police server?
Whats the best server menu's for fivem? also the best police/admin menus
[preview] panel admin v1.1
[Release] Job: Save people, be a hero! (paramedic, emergency, coma, KO)
Check plate and Run Names HELP
[RELEASE][FR]/[EN] - Coffre LSPD / Vault
Delete this post pleaselklklklklklkl
[Release] [EN/FR] [Async] Drive Test (Auto/Moto/Camion école) V1 - 09/06/17
Someone can help me...?
How to add yourself as a cop? Noob Question
Cops sql help
[RELEASE] EssentialMode Robbery System
How to upload PoliceMod to a FiveM server?
Menu accessible just for a job
Change location for stations and garages fivecops = Help
Run commands only if player is a certain ped
Modding help
[Release] Harvest/Treatment/Selling Jobs System v1.1
Stuck at "Downloaded sessionmanager"
[Release] [WIP] ARM - Advanced Roleplaying Menu
FiveM Cops - Change uniform, not model
[HELP] Police GPS
Is there an addon to vrp that lets cops see each other?
Command Support (DEV WOULD BE NICE HELP)

OMG ! I love you !!! I want thiiiisss !!! <3 :smiley:


Very nice share, it will be usefull to a lot ! :slight_smile:


Amazing :slight_smile: Thanks for this so useful release !


Hi, can you add when we add or leave the job we respawn with mp_m_freemode_01plz ?

SetPedComponentVariation(playerPed, 0, 0, 0, 2) --Face
SetPedComponentVariation(playerPed, 2, 11, 4, 2) --Hair
SetPedComponentVariation(playerPed, 4, 1, 5, 2) – Pantalon
SetPedComponentVariation(playerPed, 6, 1, 0, 2) – Shoes
SetPedComponentVariation(playerPed, 11, 7, 2, 2) – Jacket


is it for police uniform ?


no sorry it’s for civil respawn, I did not find the values for the police uniform


pants 25,2
shoes 24,0
torso 55,0
shirt 58,0

that’s your cop uniform

[Release] PayCops (for CopsFiveM Lite)

Thanks you for your script @Kyominii

@Ked Where did you found it ?


searched on my own trying out outfits with my skin script


Kyo, I don’ understand very well what to do with the SQL Table ( Modification 3).

Could you explain us a better way please ? :slight_smile:


Kyominii your are my king ^^ good job


Thanks ked, I’ll add this soon :slight_smile:

Scapin :


no prob, this gave me a headache tbh x)


Thanks Kyo. i just dunno where to put the line you wrote. Creating the Column in the table it’s Ok. But I don’t realy understand this :

Step 2 :
add "i1.limitation AS raw_lim, i2.limitation AS treat_lim" in SQL request and add "'raw_lim', 'treat_lim'" in getResults (server.lua in vdk_recolt : jobs:getJobs event handler)

Thanks :slight_smile:

AddEventHandler("jobs:getJobs", function ()
	jobs = {}
	if(not result) then
		local executed_query = MySQL:executeQuery("SELECT price, i1.`id` AS raw_id, i1.`libelle` AS raw_item, i2.`id` AS treat_id, i2.`libelle` AS treat_item, p1.x AS fx, p1.y AS fy, p1.z AS fz, p2.x AS tx, p2.y AS ty, p2.z AS tz, p3.x AS sx, p3.y AS sy, p3.z AS sz, job_id, i1.limitation AS raw_lim, i2.limitation AS treat_lim FROM recolt LEFT JOIN items i1 ON recolt.`raw_id`=i1.id LEFT JOIN items i2 ON recolt.`treated_id`=i2.id LEFT JOIN coordinates p1 ON recolt.`field_id`=p1.id LEFT JOIN coordinates p2 ON recolt.`treatment_id`=p2.id LEFT JOIN coordinates p3 ON recolt.`seller_id`=p3.id")
		result = MySQL:getResults(executed_query, { 'price', 'raw_id', 'raw_item', 'treat_id', 'treat_item', 'fx', 'fy', 'fz', 'tx', 'ty', 'tz', 'sx', 'sy', 'sz', 'job_id', 'raw_lim', 'treat_lim' })
		if (result) then
			jobs = result
		jobs = result
    TriggerClientEvent("cli:getJobs", source, jobs)

In server.lua (vdk_recolt)


hii thx for script, I have a few questions I use vdk inventory well but not VDK_recolt, I use the script illegal its walking when same or not? thx :slight_smile:


You have to modify checkInventory in server.lua to make my script compatible with your inventory


Hi Kyo,

In modification #2 there is no instruction, are we supposed to write your code inside the end of the function like this ?

function setBlip(x, y, z, num)
    local blip = AddBlipForCoord(x, y, z)
    SetBlipSprite(blip, tonumber(num))
    SetBlipAsShortRange(blip, true)
    table.insert(BLIPS, blip)
    local name = ""
    if(tonumber(num) == 17) then
        name = "Recolt"
        if(tonumber(num) == 18) then
            name = "Treatment"
            name = "Sell"


There are instructions ^^

–in vdkrec.lua : setBlip function, around line 90–

And yes, it’s that function to modify