Events

This is the list of events in this resource.

Client

TriggerEvent("pickle_prisons:jailDialog")

-- Opens a jail dialog that lets you select the prisoner, prison, and sentence.
TriggerEvent("pickle_prisons:jailDialog")

Server

TriggerServerEvent("pickle_prisons:jailPlayer", target, time, [opt] jailName)

-- If you need a jail event in your F6 menu, this is it.
TriggerServerEvent("pickle_prisons:jailPlayer", target, time)
-- Sends to state prison.
TriggerServerEvent("pickle_prisons:jailPlayer", target, time, "state")

TriggerServerEvent("pickle_prisons:jailPlayer", target)

-- If you need a unjail event in your F6 menu, this is it.
TriggerServerEvent("pickle_prisons:unjailPlayer", target)

Last updated