[FREE] Pickle's Prisons | Jail System | Breakouts | Work & Activities

Can someone help with some issue i’ve encountered ? I’m using esx_multicharacter and I have 4 characters, if I jail 1 charater for 30 minutes and then switch to other characters then i go to jail with the characters I switched. So the script doens’t see that you switched characters as the ID of the player remains the same. Anyone having this problem ?

I don’t know what else to try, because it’s breaking rp, I’ve stopped using the multi spawn too because if you get jail and then relog and you get prompted to choose where to spawn you can just spawn outside the prison area and that makes you go free.

Nope! Something wrong on your end. Works perfectly !

Hello can someone help me with this error SCRIPT ERROR: @pickle_prisons-1.1.6/modules/prison/server.lua:127: attempt to call a nil value (global ‘RegisterCallback’)

For anybody having the issue listed here with the qb framework:

The fix that worked for me was making sure that the items in “pickle_prisons > Config.lua” matched the item names listed in “qb-core > shared > Items.lua”

Make sure the names in the config.lua match the item names listed in Items.lua. The example above illustrates what it should look like for qb items.

2 Likes
1 Like

oh i have esx

2 Likes

SCRIPT ERROR: @pickle_prisons/bridge/esx/server.lua:21: attempt to index a nil value (local ‘xPlayer’)

Time doesn’t pass offline even though it should

after complete jail activity seem its not reduce amount of jail time ?

1 Like

How is the player rotated On the right side


?

1 Like

did someone solve this error please?

Hello! I get this error! How can i fix it?!
[script:pickle_prison] SCRIPT ERROR: @pickle_prisons/bridge/esx/server.lua:19: attempt to index a nil value (local ‘xPlayer’)

donde puedo encontrar el map de la carcel?

Working fine for me, apart from when I get released from Prison the clothes are still the prison clothes, anyone else having this issue?

I need the jail map where can i find it? (:

Gabz Prison, buyable

having this same issue

yes
how do we fix that

Hi! If someone quits the game or if it crashes, when they get back in they are still in the prison, but they are no longer jailed and did not receive the items back, only the clothes. Any suggestion on how to fix this?

How can I add the possibility of decreasing the time in prison instead of giving money to the players I tried to change the time in the database but it doesn’t scale so I don’t know

I added This

function GiveRewards(source, rewards)
    for i=1, #rewards do 
        local reward = rewards[i]
        if not reward.type or reward.type == "item" then
            Inventory.AddItem(source, reward.name, reward.amount, reward.createItem and reward.createItem(craftingData) or nil)
        elseif reward.type == "cash" then
            AddMoney(source, reward.amount)
        elseif reward.type == "weapon" then
            Inventory.AddWeapon(source, reward.name, reward.amount, reward.createItem and reward.createItem(craftingData) or nil)
        elseif Config.XPEnabled and reward.type == "xp" then 
            AddPlayerXP(source, reward.name, reward.amount)
        elseif reward.type == "tempo" then 
            --AddPlayerXP(source, reward.name, reward.amount)
            print("Questo è dove devo mettere la funzione")
           
        end
    end
end

If it’s “tempo”, I want to call a function to reduce the time, but if I just reduce the DB column nothing happens