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
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
RisitasCity : Good idea, I probably add that in a future release
Sir_Smog1 : You can also check client console by press F8
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
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?
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)
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.