[Release-ESX Jail] Prisonwork, Anti Combat Log, Mugshot

@qalle Great Job with the script!!! It is amazing. The only couple issues are that the jail uniform is broke and on line 150 of the utils.lua you need to replace the line with this:

if action == “Jail” or action == “Security” then

This change fixes the issue where someone who is not in jail that enters the prison wont get stuck in jail.

Besides that the script works amazingly!!! I love it and it is great use for my community at PDRP Network!!!

Thank you once more and I hope this helps improve the script and makes it better!!!

@Luggz This should be the fix you are looking for.

1 Like

Line 144 is a Closing bracket you mean under or above?

ESX.UI.Menu.Open(
			'default', GetCurrentResourceName(), 'teleport_jail',
			{
				title    = "Choose Position",
				align    = 'center',
				elements = elements
LINE 144			},
		function(data, menu)

			local action = data.current.value
			local position = Config.Teleports[action]

			if action == "Boiling Broke" or action == "Security" then

				if PlayerData.job.name ~= "police" then
					ESX.ShowNotification("You don't have an key to go here!")
					return
				end
			end

sorry I meant line 150. I forgot I made other changes. My bad.

The Image above is of the original script

Replace: if action == “Boiling Broke” or action == “Security” then

with…

This: if action == “Jail” or action == “Security” then

!! help how to do Jail remove weapon ???

hmmm… it seems like people get boxes stuck on their hands as soon as they leave the jail

Yes they do. I said to my members that they have to watch the time so they dont work when the time almost up

I could add an simple command in the UnJail() function to just remove box and stop working.

Sure. Let us know if you fix :metal:

because it’s missing some things in prison and how to put it back

How can I add permissions to jail the admins / mod

como colocou peso no inventário? ainda não achei pra ESX, a academia na minha base tá sem utilidade kk

how do you change the packing price? when working as prisoner

Having a issue if people are holding a box and end there jail time they cant remove the box its stuck in there arms forever

im using the latest esx_policejob and everytime i add your line of code my menu just breaks :frowning: it wont load open or anything F6 menu that is

1 Like

Same he does not work for me

1 Like

@qalle

When people is died inside the jail, they go to the hospital in the city and dont back to jail. ¿It is possible to repair? I like this script… and want to use it :slight_smile:

1 Like

The interiors are causing an issue for me. I crash Everytime.

1 Like

When i jail my self i cannot move :frowning: for some reason

Did you ever get around to this?