wasvendel_jail
wasvendel scripts
wasvendel_jail
wasvendel scripts
wasvendel_jail.wasvendel_jail folder into your server's resources directory.server.cfg after your framework core.Tables are created automatically on first start through the server scripts.
Edit configs/config.lua to configure facilities, sentences, national prison, escape routes, hierarchy missions, and the prisoner shop.
| Setting | Default | Description |
|---|---|---|
Config.Command | jail | Command used to open the sentencing menu. |
Config.JailLog.Command | jaillog | Command used to open the jail log UI. |
| Command | Usage | Description |
|---|---|---|
/jail | /jail | Opens the jail sentencing menu. |
/jaillog | /jaillog | Opens the jail activity log. |
/wasvjobinfo | /wasvjobinfo | Shows server-side job debug information. |
/wasvendeljaildebug | /wasvendeljaildebug | Opens client-side jail debug commands. |
Sentencing access is controlled by job and group settings in configs/config.lua.
| Export | Signature | Description |
|---|---|---|
OpenMenu | () | Opens the jail sentencing menu. |
| Export | Signature | Description |
|---|---|---|
OpenMenuFor | (src) | Opens the jail menu for a specific player. |
| Event | Payload | Description |
|---|---|---|
wasvendel_jail:jailed | x, y, z, h | Triggered when a player is jailed. |
wasvendel_jail:released | x, y, z, h, opts | Triggered when a player is released. |
wasvendel_jail:prisonerUi | state | Updates the prisoner HUD state. |
wasvendel_jail:invokeMenu | None | Opens the jail menu. |
wasvendel_jail:menuData | payload | Sends menu data to the sentencing UI. |
wasvendel_jail:sentenceResult | res | Sends the sentence action result. |
| Event | Payload | Description |
|---|---|---|
wasvendel_jail:nationalBeginIntro | None | Starts the national prison intro. |
wasvendel_jail:nationalPrisonerUi | state | Updates the national prison UI state. |
wasvendel_jail:nationalWorkCooldown | spotIndex, remainSec | Updates the work spot cooldown. |
| Event | Payload | Description |
|---|---|---|
wasvendel_jail:escapeSyncAll | states | Syncs all fugitive tracking states. |
wasvendel_jail:escapePoliceClientAlert | payload | Sends a police alert for an escape. |
wasvendel_jail:escapeStartFugitiveTracking | durationMs, intervalMs | Starts fugitive blip tracking. |
| Event | Payload | Description |
|---|---|---|
wasvendel_jail:hierarchyGiverSync | state | Syncs the mission giver state. |
wasvendel_jail:hierarchyMissionBeatStart | data | Starts a beat mission. |
| Event | Payload | Description |
|---|---|---|
wasvendel_jail:prisonerShopOpen | payload | Opens the prisoner shop. |
wasvendel_jail:prisonerShopRefresh | payload | Refreshes prisoner shop stock. |
| Event | Payload | Description |
|---|---|---|
wasvendel_jail:sentence | payload | Sentences a nearby player. |
wasvendel_jail:unjailPrisoner | payload | Releases a prisoner. |
wasvendel_jail:requestMenu | None | Requests jail menu data. |
wasvendel_jail:buyHalf | None | Buys a half sentence reduction. |
wasvendel_jail:buyBail | None | Buys bail release. |
wasvendel_jail:sisikaGateRequestOpen | None | Requests the Sisika gate to open. |
| Event | Payload | Description |
|---|---|---|
wasvendel_jail:nationalPrisonerUi | state | Hook for national prison UI updates. |