[Release] IRL jail time jailer - esx_jb_realtimejailer

I am proud i release again a jailer script that uses IRL time to jail some one. everything is included in a menu, so easy setup. The people you put in jail for 24h will stay in jail till next day. If the do reconnect before they ll still be in jail. There is also an automatic release system so that the robber can automaticly leave the jail when the time is over.
An other included feature is when jail, you ll get an jailer uniform.

esx_jb_realtimejailer

v1.0.1 added clothing
v1.0.2 fix writing error
v1.0.3 code optimalisation
v1.0.4 easy distance configuration

17 Likes

nice we need more scripts like these! :slight_smile:

thanks got lot of more scripts lol :slight_smile:

4 Likes

thanks sounds great now just for a decent fire script :wink:

2 Likes

Would be nice to see something like that that also allows player to escape the jail. like arma life.

1 Like

Any screenshots my dude?

1 Like

:thinking:


i love your jobs keep it up mate

1 Like

Look like exactly what I’ve been waiting for a long time! But can’t make it work somehow :confused: I’ve implement it like I did before with revive function (success) into the client.lua in policejob (and of course proper installation of realtimejailer itself as stand alone resource). Just after clicking on jail menu (translated in locales), it does nothing. When there is not any player nearby, it just says “no players nearby”.

Any idea what I’ve done wrong, @Jager_Bom ?

1 Like

to put someone in jail, he has to be close to you … you cannot put someone in jail when he is other side of the map

donc forget to call the function like that :

openJailMenu(GetPlayerServerId(player))

Of course. He is standing next to me as usual, when I am trying things like this.

Now, I’ve remembered that I have to put something else into the client, that wasn’t in readme, this part for menu to actually open:

                elseif action == 'unpaid_bills' then
					OpenUnpaidBillsMenu(closestPlayer)
				elseif action == 'jail_menu' then
					openJailMenu(closestPlayer)
				end

Now, my only problem is that when I am trying to set the time spend to prison for the player, I submit (and btw., what format it should be? Like 0100 hours? Takes only 4 digits, right?), nothing happens, only few errors in console displayed below:

[    761160] Your Admin Status: trueAwait failure: client/main.lua:2105: attempt to call a nil value (global         'UnblockMenuInput')
[    761160] stack traceback:
[    761160] 	client/main.lua:2105: in upvalue 'ref'
[    761160] 	citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
[    761160] 	[C]: in function 'xpcall'
[    761160] 	citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
[    761160] stack traceback:
[    761160] 	citizen:/scripting/lua/scheduler.lua:577: in field 'submit'
[    761160] 	client/main.lua:53: in upvalue 'handler'
[    768071] 	citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>Await failure: client/main.lua:2105: attempt to call a nil value (global 'UnblockMenuInput')
[    768071] stack traceback:
[    768071] 	client/main.lua:2105: in upvalue 'ref'
[    768071] 	citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
[    768071] 	[C]: in function 'xpcall'
[    768071] 	citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
[    768071] stack traceback:
[    768071] 	citizen:/scripting/lua/scheduler.lua:577: in field 'submit'
[    768071] 	client/main.lua:53: in upvalue 'handler'
[    771160] 	citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>Await failure: client/main.lua:2105: attempt to call a nil value (global 'UnblockMenuInput')
[    771160] stack traceback:
[    771160] 	client/main.lua:2105: in upvalue 'ref'
[    771160] 	citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
[    771160] 	[C]: in function 'xpcall'
[    771160] 	citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
[    771160] stack traceback:
[    771160] 	citizen:/scripting/lua/scheduler.lua:577: in field 'submit'
[    771160] 	client/main.lua:53: in upvalue 'handler'
[    775013] EndpointMapper::HandleRequest: POST /gta5/11/gameservices/Friends.asmx/GetFriends
[    792641] EndpointMapper::HandleRequest: POST /gta5/11/gameservices/presence.asmx/GetPresenceServers
[    804747] EndpointMapper::HandleRequest: POST /gta5/11/gameservices/GeoLocation.asmx/GetLocationInfoFromIP
[    824871] EndpointMapper::HandleRequest: POST /gta5/11/gameservices/auth.asmx/CreateTicketScAuthToken
[    832920] EndpointMapper::HandleRequest: POST /gta5/11/gameservices/auth.asmx/CreateTicketScAuthToken
[    838443] 	citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>Await failure: client/main.lua:2105: attempt to call a nil value (global 'UnblockMenuInput')
[    838443] stack traceback:
[    838443] 	client/main.lua:2105: in upvalue 'ref'
[    838443] 	citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
[    838443] 	[C]: in function 'xpcall'
[    838443] 	citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
[    838443] stack traceback:
[    838443] 	citizen:/scripting/lua/scheduler.lua:577: in field 'submit'
[    838443] 	client/main.lua:53: in upvalue 'handler'

did you read last post … getserverid(clostestplayer)

That breaks the police menu completely. When I have function named as

openJailMenu(playerid)

it at least opens the menu.

i have it included in OpenPoliceActionsMenu

My point was that there wasn’t anything about this in Readme, which can be very confusing for players interested in Your resource, including me.

1 Like

Ok, now I repaired it as you have it on latest screen. Menu opens, but same problem, after putting any value as time in prison (eg. 0100 or 1111), nothing happens, only error below:

[    733126] Await failure: client/main.lua:2105: attempt to call a nil value (global 'UnblockMenuInput')
[    733126] stack traceback:
[    733126] 	client/main.lua:2105: in upvalue 'ref'
[    733126] 	citizen:/scripting/lua/scheduler.lua:337: in function <citizen:/scripting/lua/scheduler.lua:336>
[    733126] 	[C]: in function 'xpcall'
[    733126] 	citizen:/scripting/lua/scheduler.lua:336: in function <citizen:/scripting/lua/scheduler.lua:335>
[    733126] stack traceback:
[    733126] 	citizen:/scripting/lua/scheduler.lua:577: in field 'submit'
[    733126] 	client/main.lua:53: in upvalue 'handler'
[    749382] 	citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>Await failure: client/main.lua:2105: attempt to call a nil value (global 'UnblockMenuInput')
[    749382] stack traceback:

If there is something else I’ve could overlooked, could you please let me know? There is main.lua (64.2 KB) from Policejob. I would be very grateful, if you could take a look. :slight_smile: Your function is all the way on the bottom.

Hello,

Someone Can help me for include Jail in the menu police,

This is my client/main

Thank you in advance

main.lua (61.8 KB)

i know why sorry

here is code you ll need to add this in police job

function UnblockMenuInput()
    Citizen.CreateThread( function()
        Citizen.Wait( 150 )
        blockinput = false 
    end )
end
1 Like

everything is clearly written what to do i can’t do more … :disappointed_relieved:

Thank you, now it works :slight_smile: Just maybe cos I have been doing something inside already, it have put me into the jail instead of player in front of me :joy:

Gonna take a look at it, I should be able to fix it from here.

Thank you again! This script is awesome!