[Release-Archived] Cops FiveM

I have 2 problems 1- I do not have the sql and I can not put it 2 when entering without the sql I do not get anything on the map

@MicroTwister : You need to get admin permissions with the CopAddAdmin command (only available through RCON / Server Console)

@manogar1a : SQL is a requirement so you need to install it before using Cops_FiveM. You can also modify the script to make it compatible without MySQL but we won’t provide support in this case

Testing this script out, tried to use the RCON commands via ICECON but it says they aren’t commands. Any ideas?

https://gyazo.com/f5498ac781404d033474cd3d4bcca2f0

I’m trying to use this script on my new box. I forgot how I got it to work but… When we clock in, it gives us our uniform but we can’t open the F5 menu. Any idea how to fix?

Do CopAddAdmin # (ex 1) that should give you admin access, then the other commands can be ran in game, only Admin can not

@Dunko : Please make sure the script is running without any error

@MLGPlasmaScope : A new version is released, please update and tell me if your issue still here

New version

1.4.4

a lot of work has been provided under and above the hood in this update as part of our commitment to continuously improving the script.
Please let us know if you have any issues or suggestions.

To all translators, please provide us your translations so we can add them in our next update.

Also we would like to give some credit to Dex for providing us the fix to make the resource compatible with ELS-Plus.

  • Deprecated the old translation method.
  • Added the feature in config/objects.lua to add more objects to the Objects menu.
  • Added the feature in config/weapons.lua to add more weapons to the Armory menu.
  • Added the feature in config/cloackroom.lua to configure models for each department.
  • Added the feature in config/vehicles.lua to configure vehicles for each department.
  • Added Spike stripes.
  • Restyled the cops menu.
  • Improved the update notification system.
  • Various code fixes.
  • Updated license to GNU AGPL v3.

There is no circle to clock in at.

When you are in the game enter the command CopAddAdmin 1 in your server console.
After that you should see a confirmation message and the blue circle.

And still when I clock in the F5 menu does not open.

I have downloaded the latest version and cant find any sql?

There is no sql file, the script will create the tables for you.
All you need to do is:

  1. setup mysql-async
  2. copy the police folder to your resources folder.
  3. add start police to your server.cfg
1 Like

Anyone that has change the code and got it working with mp_m_freemode_01?

Here : https://github.com/FiveM-Scripts/Cops_FiveM/blob/master/police/config/config.lua#L8

Disclaimer: I’m fairly new to this, so my “solution” might not be the best one.

I’m using version 1.4.2 of Cops FiveM, Skinchanger and ESX, so I added this at the top of client/cloackroom.lua:

--ESX base
Citizen.CreateThread(function()
	while ESX == nil do
		TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
		Citizen.Wait(0)
	end
end)

and then adjusted the removeUniform() function to this:

function removeUniform()
	local model = GetHashKey("mp_m_freemode_01")

	RequestModel(model)
	while not HasModelLoaded(model) do
		RequestModel(model)
		Citizen.Wait(0)
	end
		 
	SetPlayerModel(PlayerId(), model)
	SetModelAsNoLongerNeeded(model)
	
	Citizen.Wait(250)
	
	ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)
		TriggerEvent('skinchanger:loadSkin', skin)
	end)
end

This sets it to a male character, so you might want to have a check to determine if the player is a male or female.

i installed the mod but there is no cloak room i already stopped the ESX_policejob in the server.cfg but no clockroom to actually sign in or enable the function to be a cop please help

Hi! its me again, just wanted to ask you another question. I tried to configure my department names along with the matching uniforms. I went into the game and tried to enter the cloakroom and there are no options on the menu now. Previously it was just Park Ranger. I am not sure what exactly I did wrong. Here are some images of the menu and files I changed. https://gyazo.com/a868d43987d5e4d53f609b1825d1a7d6 https://gyazo.com/3fbed36f3b4e74612fd34397d8269ea0
https://gyazo.com/41c895733fe9f7b2de1d8a3ff547956b

Thank you for assisting me with this issue in advance!

is there a way to have it to were you can deploy the spike strips out side a vehicles it look silly that they just pop out of the back of your car

Spike stripes have been removed in the next update version.
You can verify the changelog for more info.

Nice. Is it possible to change so every cop swat, sheriff etc goes with mp_m_freemode_01?

Yes, if you have all the right components for the mp_m_freemode_01 model