[Release-Archived] Cops FiveM

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:

Nice thx i’m impatient for your next update. wait and see.

1 Like

And a last little thing, can you add in your .lua file the possibility to choose if the arrested people can walk with a simple True/false ? :slight_smile:

1 Like

I’m thinking about this :slight_smile:

You’r great @Kyominii :wink:

1 Like

A-MA-ZING ! Give this man cookies !

1 Like
  • 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.