It SHOULD work for police that are whitelisted to use the policemenu (assuming you put it in the menu and have police as a whitelisted job)
ok so your saying if the esx_policejob is whitelisted then they can jail? and its in the menu?
I think so, I am still building my server so I donât have a body to test such things at the moment but just follow the instructions to put it into your esx_policejob menu, then have a cop who is not admin jail you through the menu and not command
just looking at the code, it should work though cause it just pulls the function and I donât see anything that runs a check on permissions
yes but without the command how do you set the amount of time for prison cause when you click the button in the menu i dont think it lets you choose how long they will be in prison?
It will give a popup allowing you to enter the time
ok gotcha my only concern is someone putting the wrong person in jail and you cant get them out. Because no unjail
Is possible to set a real time jail? Since I want to be able to jail someone for doing something nasty, but if the guy should make his punishment during game time, itâs just another AFK player keeping player server slot busy
Iâm having issues adding it into my policejob menu! Makes the policejob stop working.
Same
No idea - shame so one cannot upload thereâs with it already plumbed in.
Yeah a real shame, really could of done with something like this
anybody get it to work via police menu?
Iâve not, let me know if ur lucky , just seems to crash the script
Everything is great but in the police menu, i have âTranslation [EN][Jail] Does not existâ
I have added that to the policejobs locale en,
[âJailâ] = âJailâ,
but it still doesnât want to show up. any ideas?
also the blip on the map has no translation
Got a bug, if police job jails you from the added menu selection or regularly, when you are unjailed you remain cuffed. But the animation does not keep you cuffed. You cant move tho.
Latest updates include
- Improved & fixed timer
- Use new chat resource triggers
- Proper locale naming
- General improvements
- Blip changed
- Moved all sync to async mysql tasks
- Improved respawning after death whilst being in jail
Hi there, I have been using esx jailer. And I had it working fine,
I updated it today from the new update to fix the locale files and now i get this error
[ERROR] [MySQL] Check the error above, an error happens when executing the callback from the query : âSELECT * FROM jail WHERE identifier=@id {@id=steam:XXXXXXXX}â
(removed steam id on purpose here)
I have it in the policejob menu fine from last time, ive updated the sql file to match the updated version of esx jailer.
Thanks in advance for any advice, been scouring for a while before posting here
My issue only happens when i am doing /jail. i assume when i get this working the script in the policejob client will work inherintly.
it worked great when i used the old version only till i updated it to the one u released a couple of days ago.
New errors now
Oh new error on Jailer now
Error running system event handling function for resource esx_jailer: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:43: attempt to call a nil value (field âRoundâ)
stack traceback:
server/main.lua:43: in upvalue âhandlerâ
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function âerrorâ
citizen:/scripting/lua/scheduler.lua:41: in field âCreateThreadNowâ
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
[C]: in function âcoroutine.resumeâ
citizen:/scripting/lua/scheduler.lua:34: in field âCreateThreadNowâ
citizen:/scripting/lua/scheduler.lua:335: in function citizen:/scripting/lua/scheduler.lua:322
Update ESX, itâs a new function
Ahh ok, The base? I will try it when I get home from work. Thanks