Habs zwar nicht getestet aber müsste so funktionieren:
Du suchst nach in esx_policejob/client/main.lua nach
if Config.EnablePlayerManagement and ESX.PlayerData.job.grade_name == ‘boss’ then
for i=1, #v.BossActions, 1 do
local distance = #(playerCoords - v.BossActions[i])"
und trägst bei ‘boss’ den Namen des höchsten Ranges ein. Ich kann mich auch irren, aber ein Versuch wird es wert sein.
Hi there! I’m trying to edit the fine menu so that it better suits the rules that are in my server. How do I go about tweaking the fine categories? I can see how to edit the fines itself from the fine_types database, but not too sure where the digits for the categories link to. Thanks!
Having issue [script:esx_policejob] Error parsing script @esx_policejob/config.lua in resource esx_policejob: @esx_policejob/config.lua:242: ‘}’ expected (to close ‘{’ at line 240) near ‘Recruit’ config.lua (13.6 KB)
U can’t use spacers for the job grade label, u have to use “_” or something like that to separate it. Script is waiting for an equal after the spacer. Also using a “.” is wrong here. Make sure u have the same gobgrades also named like this in the database or u won’t get any car out of the garage
config.lua (13.7 KB) try this and make sure u have same jobgrades in DB
Set the job as whitelisted in your DB. Change the 0 to a 1. Look under “jobs” in your server database.
Sorry if this is late, was just reading through and saw your issue, hopefully you got it fixed already.
After restarting esx_policejob I got the following error:
[ script:esx_service] SCRIPT ERROR: @esx_service/server/main.lua:26: attempt to index a nil value (field ‘?’)
At the main.lua it looks as follows:
I got an issue with my “esx_policejob”.
When i got the job as LSPD, and then log off the server, and later get back on the server, i am still in LSPD, but i cant do all the “police stuff”, as taking out a car, get weapons in armoury or change the clothes.
I have added all the other jobs, which all work perfectly., even when relogging.
Does anyone know how to fix this, i used pretty much all day yesterday to fix it, and nothing happend, still same problem., thats why i now ask all of you.
I’ve had the same issue, you just need to restart the esx_policejob resource when the server has turned on, it’s not a great fix, but it’s working for me.