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

esx-qalle-jail

[INFO]

This is a script made for you that wan’t something out of the ordinary, this is a jail script that will add some cool side effects of getting jailed, one of em is that when you get jailed you will be teleported to the charactermugshot creation, and an sheriff ped will take a photo of you. The other thing is that you can work for a small amount of cash while in jail.

Feedback and bugreports is always appreciated.

[EXTRAS]

  • Add To Police Menu Example ->
        elements = {
            {label = _U('citizen_interaction'),	value = 'citizen_interaction'},
            {label = _U('vehicle_interaction'),	value = 'vehicle_interaction'},
            {label = _U('object_spawner'),		value = 'object_spawner'},
            {label = "Jail Menu",               value = 'jail_menu'} -- You add this line
        }
    }, function(data, menu)

        --You add this

        if data.current.value == 'jail_menu' then
            TriggerEvent("esx-qalle-jail:openJailMenu")
        end

        --Above This
        if data.current.value == 'citizen_interaction' then

[USAGE]

  • /jail ID jailTime(minutes) "description" command (only players who have the job “police”)

  • /unjail ID to unjail a player (only players who have the job “police”)

  • /jailmenu quick command if you dont want the menu. (only players who have the job “police”)

[REQUIREMENTS]

[INSTALLATION]

  1. Donwload esx-qalle-jail https://github.com/qalle-git/esx-qalle-jail

  2. CD in your resources/[esx] folder

  3. Import jail.sql into your database

  4. Download prison-map-addon from https://github.com/qalle-git/prison-map-addon

  5. Add this in your server.cfg :
    start esx-qalle-jail

Screenshots




42 Likes

Sexy hmmmmmmmmmmmmmmm :*

So i cant put IT in the police menu?

And how is this Anti Combat Log?

If you log out and log in you’re still in jail.

Could make it possible easy fix.

Ok will be Nice If we can add IT in police menu

Will do tomorrow! :slight_smile:

Thanks brother love IT

Works fine but :slight_smile: if a players user use a emote they can glicht true wall and they are free

You could simply add a check every couple of minutes to see if they’re within a certain distance to prison and if not teleport them back, but your players should be role-playing this properly anyway.

Yes i was just testing it out :slight_smile:

any chance of prison clothes to be added?

2 Likes

It is added im pretto sure in the cutacene function

“Import jail.sql into your database” you mean this esx-qalle-jail.sql file?

If you are jailed you can press security at the teleporter in the jail and then boiling broke to get out but if you are police you can’t get out to security. Should it be that way?

1 Like

Yeah a quick question how do I get a key for the security thing one? I can go in jail but not the security option? Says no key?

Oh okay think im thinking of esx_celldoors lol sorry.

No, the script is made that if you are not an officer, you will get the message “You don’t have an key”.

1 Like

So i put a civ in jail and after having there picture taken, It teleported them to the mission row area and they could do whatever they wanted. It has been tested by multiple people and this just happened to him.

1 Like