[ESX/QB] myPrison - Advanced Jail management script

A script by Luiiis

No reviews yet.
[ESX/QB] myPrison - Advanced Jail management script main image

Full Description


Hey guys,
and welcome to the script myPrison, which provides everything you can imagine for your jail management.

Showcase:

Highlights:

  • Create as many jails as you want
    not only for the Bolingbroke Penitentiary, also manage your LSPD cells and so on with this script!
  • Full jail management menu (for configurable jobs)
    Check all inmates, change their remaining time in prison or release them
  • Easy to use menu to arrest players
  • Full Prison log
  • Work for the inmates
    → configurable with rewards (less time in prison)
  • Manipulation (Bribe) option for guards (can be completely configured and disabled)
  • Escape Alert for the PD
  • Inmates get food and drinks from the guards
  • Prison gym for the inmates
  • Optional prison clothes and options to automatically remove weapons and items from the player when entering the prison and restore up on release.

Prison Gym
with 5 different exercises

Prison work
Create as many jobs as you want

Time rewards for work and gym
image

Manage prisons through a menu
image

Detailed Prison log:
image

Escape Alerts
image

Extra: Manage all cells on your server with myPrison
→ Also the LSPD Cells: Just add them to your Config. Guards and work can be disabled for those for example.

Event triggers
You can trigger one simple client event to open the menu

TriggerEvent('myPrison:open')

Example integration for esx_policejob:
I’ve added those two events to the F6 menu of the esx_policejob for example.
To do this, you can go to the client/main.lua and add a new category below the existing ones:

Part 1
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'police_actions', {

        title    = 'Police',

        align    = 'top-left',

        elements = {

            {label = _U('citizen_interaction'), value = 'citizen_interaction'},

            {label = _U('vehicle_interaction'), value = 'vehicle_interaction'},

            {label = _U('object_spawner'), value = 'object_spawner'},

            {label = 'Jail', value = 'jail'},

    }}, function(data, menu)

And afterward I’ve aded a new submenu with those two events:

Part 2
elseif data.current.value == 'object_spawner' then
			ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'citizen_interaction', {
				title    = _U('traffic_interaction'),
				align    = 'top-left',
				elements = {
					{label = _U('cone'), model = 'prop_roadcone02a'},
					{label = _U('barrier'), model = 'prop_barrier_work05'},
					{label = _U('spikestrips'), model = 'p_ld_stinger_s'},
					{label = _U('box'), model = 'prop_boxpile_07d'},
					{label = _U('cash'), model = 'hei_prop_cash_crate_half_full'}
			}}, function(data2, menu2)
				local playerPed = PlayerPedId()
				local coords, forward = GetEntityCoords(playerPed), GetEntityForwardVector(playerPed)
				local objectCoords = (coords + forward * 1.0)

				ESX.Game.SpawnObject(data2.current.model, objectCoords, function(obj)
					SetEntityHeading(obj, GetEntityHeading(playerPed))
					PlaceObjectOnGroundProperly(obj)
				end)
			end, function(data2, menu2)
				menu2.close()
			end)
		elseif data.current.value == 'jail' then
			menu.close()
			TriggerEvent('myPrison:open')
		end

If you have trouble regarding his change, simply contact me, so I can send you a main.lua, which already contains those changes.

Regarding Escrow

We paid the highest attention to the opportunity that everybody can simply modify everything without any encryption.
For this matter we only included about two pretty small functions, which never have to be modified and can’t cause any problems into the escrow file. So I can promise 100% that you will not even notice this protection, when you aren’t willed to leak the script. If you encounter any problems through this, we’ll directly remove those functions from the escrow file.

Code is accessible Yes
Subscription-based No
Lines (approximately) 1700
Requirements ESX or QB (all versions supported)
Support Yes

Price: 9.99€
Get the script at: https://luis-scripts.tebex.io/package/5343907

Bundle offer for myPrison + mySpeedcam with more than 10% off: https://luis-scripts.tebex.io/package/5343910

:heart: Feel free to check out our other latest scripts