[Release-Archived] Cops FiveM

  • eng : I have to try to make the modifications, I can take the service and take the police car but I no longer harvest treatment and vendor anyone could make a small archive example?

I think you shouldn’t post En/Fr post but only En :wink:
And for your archive, I’ll put one which contains all modifications in Github later today :smiley:

hello ,

Step 1 and 2 of the modification 3 are litle bit complicate to me :slight_smile:

Step 1 :
Add a new column limitation to your item table name (not null)

Is it that what i need ?

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)

I really don’t understand that step 2, sorry

Can you help me please ?

Thanks

Already asked :smiley:
Here a link which can help you : [Release] Cops FiveM

And your limitation column needs to be filled by int value

ok done sorry about that :slight_smile:

also : Create a non-null job exclusive to all illegal jobs (mine is 6 for exemple) and change all illegal harvest job id to this new created ID

i don’t know exactly what to do :slight_smile:

add one job in job table ?
can you show me an exemple please like screen if it’s possible ?

thanks

Job ID 6 is a job for all illegal harvesting (with this ID, we can hide blips, etc …)

In this screen, row 1 is for weed and row 4 is for cocaine

i have an error message about job-système, can you check my server.lua please ? thanks

Please remove line 11-14, you don’t erase the original updateJob function :smiley:
And remove live 26 also

great no error now

Thanks a lot :slight_smile:

1 Like

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