Is here like jailing script for policejob/animation for handcuff and that it doesn’t freeze when at cuffs so you could move and drugs would be nice script aswel.
So you want something that doesn’t freeze your screen when cuffed? Because making a cuff script is not hard, and there is alot of drug scripts
I can’t find drug script that works for real. And I can’t make that policejob animation and uhh unfreeze
after the animation use
local ped = PlayerPedId()
ClearPedTasks(ped)
Man you got good jail script for policejob?
It works just fine with policejob esx?
yes.
{label = _U('fine'), value = 'fine'},
{label = _U('jail'), value = 'jail'}
if data2.current.value == 'jail' then
JailPlayer(GetPlayerServerId(closestPlayer))
end
---
function JailPlayer(player)
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'jail_menu', {
title = _U('jail_menu_info'),
}, function (data2, menu)
local jailTime = tonumber(data2.value)
if jailTime == nil then
ESX.ShowNotification('invalid number!')
else
TriggerServerEvent("esx_jail:sendToJail", player, jailTime * 60)
menu.close()
end
end, function (data2, menu)
menu.close()
end)
end
Having problem input if data2.current where it exactly goes
Well you got so much stuff in that woah. I need like simple drug and jail menu I try to look how you got it working with your file but thanks!
you can open jail menu with /jailmenu and /jail [id] [time] manually without any needed F6 police menu
Yes f6 menu doesn’t really work.
If you got any good scripts hit me up, I want to make my server a bit better .'D
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.