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.
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’)
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”
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’)
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