Config

Here you can find all informations related to our Config & locales system.

Third party integrations

Location: rcore_prison/configs/config.lua
https://github.com/rcore-cz/rcore_docs/blob/master/paid-resources/rcore_prison/v1/integrations/README.md

Telephone Booth - phone

Before you use booth module you should define what phone are you using in config.js config file.

  • Only for supported phones!

-- Location: rcore_prison/web/config.js

* For qs-smartphone use config qb-phone.

const CONFIG = {
    "phoneLenght": 10, // "npwd - 10", "gksphone: 10, qb-phone: "10",
    "phoneFormat": "gksphone" // "npwd", "gksphone", "qb-phone",'
}

rcore_basketball

rcore_basketball - optional data that support our interior presets

-- Location: rcore_basketball/config.lua ['BasketballHoops']
# ['rcore_prison_map']

BasketballHoops = {
    {
        pos = vector3(1671.640381, 2502.784912, 44.557003), 
        rot = vector4(0.000000, 0.000000, 0.942665, 0.333741),
        State = nil,
        Model = `prop_basketball_net`,
        IsSubscribed = false,
        threePointFwdDist = 0.0,
        threePointSideDist = 0.0,
        threePointRadius = 30.0,
        hideBlip = true,
    },

    {
        pos = vector3(1689.102173, 2523.121094, 44.641594), 
        rot = vector4(0.000000, 0.000000, -0.329191, 0.944263),
        State = nil,
        Model = `prop_basketball_net`,
        IsSubscribed = false,
        threePointFwdDist = 0.0,
        threePointSideDist = 0.0,
        threePointRadius = 30.0,
        hideBlip = true,
    },

    {
        pos = vector3(1729.442505, 2525.064697, 44.558537), 
        rot = vector4(-0.000000, 0.000000, 0.965665, -0.259790),
        State = nil,
        Model = `prop_basketball_net`,
        IsSubscribed = false,
        threePointFwdDist = 0.0,
        threePointSideDist = 0.0,
        threePointRadius = 30.0,
        hideBlip = true,
    },

    {
        pos = vector3(1718.615479, 2545.604004, 44.588676), 
        rot = vector4(0.000000, 0.000000, 0.239589, 0.970874),
        State = nil,
        Model = `prop_basketball_net`,
        IsSubscribed = false,
        threePointFwdDist = 0.0,
        threePointSideDist = 0.0,
        threePointRadius = 30.0,
        hideBlip = true,
    },
}

Permissions

  • Its required to add those permissions in your server.cfg.

Other

If you like to define your language, redirect to locales system guide.

Locales system
Name
param
desc

Define how much time the new Prisoner spent in outfit selection, if new prisoner is not selecting anything, warden is going to choose him random prison outfit.

Here you can define your language.

Do you like to use native notifications or own?

True - Prisoners can be offline and jail time is reducing False - Prisoner needs to be on server for reducing time.

True - Notify job members when prisoner join activity on Prison yard. False - To disable notify of new job member (activity)

Prison Yard

All related settings for yard area.

Inmates

All related settings for Inmates (tasks, trades etc)

Community service

Community service

NPC

NPC configuration

Circuit minigame

Circuit configuration

Canteen

Prison canteen settings

Gym

Gym

Target

Target

Activities

Activities

Minigame

Package of Cigarrets

Option
Param
Description

Steps

integer

How many blocks script is going to generate?

MoveStep

float

Speed of arrowKeys generation block

Tolerance

float

What tolenrace should script ignore?

TimeAcc

float

Calc behind keyPress minigame

Commands

Option
Param
Usage
Command desc

Do you want to allow usage of jail commands?

Enable/Disable state of command usage.

Registered jail command as jail by default

/jail serverId 10

Registered unjail command as unjail by default

/unjail serverId

Registered dashboard command as dashboard by default, usage for opening dashboard app.

/dashboard

Do you want to sent somebody for community service

/startcs serverId 30

Jobs

There is option to define your jobs, restriction for commands.

Job name
state

Define your server job name, which will be able to perform jail commands.

Accounts

There are options for Prisoner accouns, which you can define:

Option
state
Desc

Item which is used as internal economy inside prison (itemName).

Default starting balance for Prisoner account, when created.

When Prisoner is jailed, and has created prisoner account, can outside people sent prisoner gifts?

How many friend can prisoner have added?

Release

There are options for prisoner release, which you can define.

Option
state
Desc

Stash prisoner items & return

Transfer prisoner credits to money, when Prisoner released from jaill

KeepItems

You define specific iems, which prisoners can bring inside Prison.

Item name
state

['water']

true

Usage:

Level

You can define level debug, very useful when you want to see whats happening in background.

Last updated

Was this helpful?