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

how to add so it reduces jailtime by doing work

Having a small issue where it wont release me once my sentence is over?? Any ideas?

Menu jail F6 Not working, help me

after the mugshot it just puts me in the prison yard no interior. am i missing a teleport or something

It has to be setup properly. Like mine.

		if data.current.value == 'citizen_interaction' then
			local elements = {
				{label = _U('id_card'),			value = 'identity_card'},
				{label = _U('search'),			value = 'body_search'},
				{label = _U('handcuff'),		value = 'handcuff'},
				{label = _U('drag'),			value = 'drag'},
				{label = _U('put_in_vehicle'),	value = 'put_in_vehicle'},
				{label = _U('out_the_vehicle'),	value = 'out_the_vehicle'},
				{label = _U('fine'),			value = 'fine'},
				{label = _U('unpaid_bills'),	value = 'unpaid_bills'},
				{label = "Jail Menu",               value = 'jail_menu'},
				{label = _U('revive player'),       value = 'revive'}
			}

This is for the jail menu


			ESX.UI.Menu.Open(
			'default', GetCurrentResourceName(), 'citizen_interaction',
			{
				title    = _U('citizen_interaction'),
				align    = 'top',
				elements = elements
			}, function(data2, menu2)
				local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
				if closestPlayer ~= -1 and closestDistance <= 3.0 then
					local action = data2.current.value
 
					if action == 'identity_card' then
						OpenIdentityCardMenu(closestPlayer)
					elseif action == 'body_search' then
						TriggerServerEvent('esx_policejob:message', GetPlayerServerId(closestPlayer), _U('being_searched'))
						OpenBodySearchMenu(closestPlayer)
					elseif action == 'handcuff' then
						TriggerServerEvent('esx_policejob:handcuff', GetPlayerServerId(closestPlayer))
					elseif action == 'drag' then
						TriggerServerEvent('esx_policejob:drag', GetPlayerServerId(closestPlayer))
					elseif action == 'put_in_vehicle' then
						TriggerServerEvent('esx_policejob:putInVehicle', GetPlayerServerId(closestPlayer))
					elseif action == 'out_the_vehicle' then
						TriggerServerEvent('esx_policejob:OutVehicle', GetPlayerServerId(closestPlayer))
					elseif action == 'fine' then
						OpenFineMenu(closestPlayer)
					elseif action == 'license' then
						ShowPlayerLicense(closestPlayer)
					elseif action == 'unpaid_bills' then
						OpenUnpaidBillsMenu(closestPlayer)
					elseif action == 'jail_menu' then
						TriggerEvent("esx-qalle-jail:openJailMenu")
					elseif action == 'revive' then
						TriggerServerEvent('esx_ambulancejob:revive', GetPlayerServerId(closestPlayer))
					end

As you can see for the action it’s setup to triggerevent for qalle’s jail
elseif action == ‘jail_menu’ then
TriggerEvent(“esx-qalle-jail:openJailMenu”)

2 Likes

Really Good Script :slight_smile: !!!

When players kill each other in prison or starve to death, How can they be revived in place. Because when they die, they will revive to the hospital
:octopus:

1 Like

how to add female clothe ? or we just add new line under this line ?

TriggerEvent('skinchanger:getSkin', function(skin)
		if GetHashKey(GetEntityModel(PlayerPedId())) == Male then
			local clothesSkin = {
				['tshirt_1'] = 15, ['tshirt_2'] = 0,
				['torso_1'] = 237, ['torso_2'] = 0,
				['arms'] = 5,
				['pants_1'] = 15, ['pants_2'] = 15,
				['shoes_1'] = 34, ['shoes_2'] = 0,
			}
			TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)

		else
			local clothesSkin = {
				['tshirt_1'] = 15, ['tshirt_2'] = 0,
				['torso_1'] = 237, ['torso_2'] = 0,
				['arms'] = 5,
				['pants_1'] = 9, ['pants_2'] = 4,
				['shoes_1'] = 34, ['shoes_2'] = 0,
			}
			TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
		end

Need a fix for people being sent to hospital as soon as they have been jailed. they get sent to the hospital even with prison clothes on

Have you fixed this issue by any chance?

How to remove handcuffs of when he is handcuffed and imprisoned !! (sorry my english is bad)

I tried to replace the prison clothes in the utils.lua but seems not working. Any helps? Thanks

Having an issue where when jailed i either spawn into the cell and fall through the floor or the game crashes. Tried changing the coords so that i spawn a little higher but the ensures the game crashes.

Another thing i noticed is that if i jail for like 2 mins i just stay in the picture room free to walk around.

Officer does not show up when it takes pictures!

how do i make it so more jobs can use the jail menu?

delete server cache

i delete server cache on every startup.

same here

For food and water you could always have police ask if they need any or you can add a location inside the jail where prisoners can buy food and water

Issue I have is when people get sent to jail, they can teleport to the security office and even spawn outside, is there a way to restrict only a few places they can go. like to the job warehouse, and the cells