[Release-Archived] Cops FiveM

error=0 but i write /addcop or other dont work . I must have an ID or Permission what level ?

Permission level : owner or 100000 power level :smiley:

:slight_smile: thx kyominii ( et merci pour les reponses )

1 Like

Which script is the job system ? Can you send me the link of that script ?

(-- server.lua (job system) --)

Could you make a tutorial video for installation ? I’m confused dude help me about modifications :’(

I forget to add this requirement, sorry ^^

2 Likes

Hi Kyominii and thank for his release. I have a question : i use files of advanced rp and i have “es_roleplay” with police job. Are they compatible? or i do just use essentialmod ? can you upload your CitizenMP.Server.config? Thank!
'#FrenchPower!

1 Like

Why CitizenMP.Server.exe.config ? :smiley:
I don’t know if it is compatible with es_roleplay :slight_smile:

I would like to see the resources you use for the CopFiveM (i didn’t use essential freerom, and my principal scripts are AdvancedRP (es_roleplay, es_miscshop …)
Just see the CitizenMPConfig script’s release on FiveM pls

citmp-server.yml (1.1 KB)

Here is the file Galnoc

(Sorry, I go to bed, it’s 1:21 here, I won’t reply to your posts before I get to work tomorrow. Good night all ^^)

1 Like

so the police mod is for freeroam. I ll try to add to advanced rp

Hello, your script is awesome, can you add if you have the time the /checkplate command for seeing who is the vehicle owner of a car :slight_smile: (with using user_vehicle tab)

1 Like

Sup Kyominii first thx for your script is very useful :wink:

im try to installe dem and

– vdkrec.lua (vdk_recolt) – modification 1

broke my recolt systeme and not possible to pickup item …
I replace the code of the script and replace the itemjobid by mine but in games I can not retrieve the items on the crops example weed or copper

no erreur in consol
all modification is completed
modification DDB is completed

If you would have an idea for help me
when I give my original vdkrec file my harvest is working again

#FrPower sorry for my english

The /forceEnter don’t work, the player didn’t move.

@Kyominii

A big Thanks to you for this release, very nice work.

If i can suggest something, for all who wants to use their own Check/Fines/Jobs scripts can you make a “Lite” version of your script ? With only:

  • Add/Remove Cop
  • Take/Break service in station
  • Take/store cop vehicle
  • Cuff/Force player to enter car

That would be awesome :slight_smile:

1 Like

Hey @Kyominii first thx a lot for your script it’s very usefull.

Can you explain me a few things:

  1. How-to create a new rank and command to set this new rank?
  2. How to create a command to derank someone
  3. How to link the police rank to the jobs script (because when you join the police you keep your last job)

thx a lot again

Just add and other SQL Update in the serveur file

function addCop(identifier)
	MySQL:executeQuery("INSERT INTO police (`identifier`) VALUES ('@identifier')", { ['@identifier'] = identifier})
	MySQL:executeQuery("UPDATE `users` SET job=2 WHERE `identifier`='@identifier'", { ['@identifier'] = identifier})
	
end

function remCop(identifier)
	MySQL:executeQuery("DELETE FROM police WHERE identifier = '@identifier'", { ['@identifier'] = identifier})
	MySQL:executeQuery("UPDATE users SET job=1 WHERE `identifier`='@identifier'", { ['@identifier'] = identifier})
end

where job = YOURPOLICENUMBER for the first and job=DEFAULTJOB for the second

1 Like

replace :

for _, v in ipairs(result) do
				if(v.job_id == 6) then
					strResult = strResult .. v.quantity .. " de " .. v.libelle .. ", "
					TriggerClientEvent('police:dropIllegalItem', target, v.item_id)
				end
			end

by

			for _, v in ipairs(result) do
					strResult = strResult .. v.quantity .. " de " .. v.libelle .. ", "
			end
1 Like

i’m actually at work so when i’ll come home, i’ll try this thx

Day_Field : Yes, it’s for freeroam (I just add this requirement on the topic), but I think you can modify it to make it works with it :smiley:

RisitasCity : Good idea, I probably add that in a future release

Sir_Smog1 : You can also check client console by press F8 :slight_smile:

Neurowend : You have to make the player look at the vehicule and to make the player be stick to this vehicle, then type /forceEnter (I don’t know if I can use the word “stick” here, sorry ^^)

Date_Kane : No problem, maybe this afternoon after work I would do that ^^

ig0ne : police rank isn’t working yet, but very soon, and Boulouk code seems to be good for linking job system and cops :slight_smile: