[Release-Archived] Cops FiveM

It would be great if you create/add unseat and jail script.

1 Like

Unseat is in test (thanks Thefoxeur54) so it’ll be in the next release.
I’m looking for a jail system :wink:

1 Like

Yo There are several grades available? And damage that there is only a police car to appear, because I operate with a system of “1 car per grade”
Thank you for your answer and your work.

Kyominii : if you want help for jail system you can see advanced rp. The system work

1 Like

Papy_Gamer : It’s plan to have several ranks in police and to have a vehicle in function of your rank :smiley:

Galnox : Thanks, I’ll have a look to this ^^

is possible here to add s_m_y_sheriff_01 for exemple instead of

if(isInService) then

					--Thanks to Xtas3
					SetPedPropIndex(GetPlayerPed(-1), 0, 46, 0, 2)            --Casquette Police
					SetPedComponentVariation(GetPlayerPed(-1), 11, 55, 0, 2)  --Chemise Police
					SetPedComponentVariation(GetPlayerPed(-1), 8, 58, 0, 2)   --Ceinture+matraque Police 
					SetPedComponentVariation(GetPlayerPed(-1), 4, 35, 0, 2)   --Pantalon Police
					SetPedComponentVariation(GetPlayerPed(-1), 6, 24, 0, 2)   -- Chaussure Police
					SetPedComponentVariation(GetPlayerPed(-1), 10, 8, 0, 2) --grade 0

No, it’s a feature that many people are using. But I can give you the piece of code to change the model (it’s the old system) to apply on your copy of script

yes please it will be great thanks

Replace all code you gave me to this

local model = GetHashKey("s_m_y_sheriff_01")

RequestModel(model)
while not HasModelLoaded(model) do
	RequestModel(model)
	Citizen.Wait(0)
end

SetPlayerModel(PlayerId(), model)
SetModelAsNoLongerNeeded(model)

thanks a lot working well

1 Like

Nice bro, im french too^^
Good job
Just let me know as soon as this happens (I hope soon): D

2 Likes

Waiting for the next release :smiley:

2 Likes

thx Kyominii for screen it help me i understand ^^

2 Likes

Soon the next release, but I can’t give you an ETA ^^

can you tell me what is the type and length for the limitation column please

also now i can not recolt anything, i don’t know why just nothing happend

Here the structure of the items table:

CREATE TABLE `items` (
  `id` int(11) UNSIGNED NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `limitation` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1 Like

Check error on server/client, clear cache, restart server, disconnect-reconnect

igOne thanks

Kyominii there is an error :slight_smile:

https://gyazo.com/4ac79e728cce8f581e884d467680d9e2

restart your server, I’ve this error too sometimes. I don’t know if it’s come from my changes, or if it is a bug somewhere else

ok i will and i’ll let you know thanks

1 Like