@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!!!
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
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