Skip to main content

Config

RiP-Prison also offers prisoners variety and interactive roleplay. Some options are explained here. However this does not represent the original config file.

RiP.Permissions

Job (+ grade) permissions to access jail menu. For a job with a specific grade only use the following syntax: 'job:grade'

RiP.Permissions = {                         -- [STRING] permissions to access the menu ('job' or 'job:grade_name')
'police', -- all players with 'police' job
'fib:agent' -- all players with 'fib' job and 'agend' grade-name
}

RiP.Locations

RiP.Locations = {
Main = vector3(1690.7125244141,2591.3916015625,45.914459228516), -- [VECTOR] coords for access point and blip (x,y,z)
Gate = vector4(1849.0625,2585.8503417969,45.671993255615,271.17965698242), -- [VECTOR] coords for prison release (x,y,z,h)
Cells = vector4(1755.0377197266,2486.0202636719,49.236335754395, 129.64526367188), -- [VECTOR] coords for cellblock teleport (x,y,z,h)
Yard = vector4(1712.1832275391,2565.8383789063,45.564849853516, 232.46951293945), -- [VECTOR] coords for yard teleport (x,y,z,h)
Range = 200.0 -- [DECIMAL] range for the main location
}

RiP.Cells

Unlimited prision cells and their locations

RiP.Cells = {
[1] = { -- [INTEGER] unique cell id
Position = vector3(1775.6170654297,2507.2534179688,49.237133026123) -- [VECTOR] cell location (x,y,z)
},
[2] = {
Position = vector3(1769.9814453125,2503.9147949219,49.237228393555)
},
}

RiP.JailAnimation

Show small jail animation when putting player in jail

RiP.JailAnimation = true                    -- [BOOLEAN] enable/disable animation when putting in jail

RiP.JailBreak

Unlimited prision cells and their locations

RiP.JailBreak = {
Enable = true, -- [BOOLEAN] enable prison break

Cooldown = 30, -- [INTEGER] global cooldown time after prison break (in minutes)
ExtraTime = 5, -- [INTEGER] client cooldown after failures

Ped = {
Location = vector4(1728.4148856,2494.5081312,49.2257892,303.3913398), -- [VECTOR] ped location for starting prison break mission (x,y,z,h)
Hash = 0xB1BB9B59, -- [HASH] ped hash
Price = 1000 -- [INTEGER] price to start mission
},

Minigame = {
Type = 'random', -- [STRING] minigame name (https://docs.development.rip/docs/scripts/minigames)
Time = 30, -- [INTEGER] minigame time
Attempts = 3 -- [INTEGER] minigame attempts
},

Police = {
Announce = true, -- [BOOLEAN] enable police notify on break out
Dispatch = function(position)
-- add your dispatch trigger:
-- TriggerEvent('roadphone:sendDispatch', GetPlayerServerId(PlayerId()), "Gefängnis-Ausbruch", "police", position, true)
-- TriggerEvent("d-phone:server:sendservicemessage", GetPlayerServerId(PlayerId()), "Gefängnis-Ausbruch", "police", 0, 1, position, "5")
end,
},

PowerBoxes = {
vector3(1695.2303466797,2537.8051757813,45.564834594727), -- [VECTOR] position for power boxes to disable (x,y,z)
vector3(1706.0906982422,2479.6618652344,45.564914703369),
vector3(1735.5959472656,2504.5676269531,45.564914703369),
vector3(1625.0987548828,2575.7453613281,45.564910888672),
vector3(1608.4373779297,2540.6982421875,45.564868927002),
vector3(1642.2149658203,2490.048828125,45.564868927002),
},

Exits = {
{
Insite = vector3(1555.6657714844,2476.7421875,45.402164459229), -- [VECTOR] location to break out from insite (x,y,z)
Outsite = vector3(1537.0369873047,2468.349609375,45.431293487549), -- [VECTOR] location after break out (x,y,z)
Probability = 0.2 -- [DECIMAL] chances of getting cought (0.2 = 20%)
},
{
Insite = vector3(1769.0787353516,2748.51171875,45.437267303467),
Outsite = vector3(1774.28125,2766.3623046875,45.614570617676),
Probability = 0.6
},
{
Insite = vector3(1809.9647216797,2482.0139160156,45.465812683105),
Outsite = vector3(1827.8970947266,2473.8666992188,45.319469451904),
Probability = 0.6
},
}
}

RiP.Training

RiP.Training = {
['arms'] = { -- [VECTOR] all positions for training bizeps (x,y,z)
vector3(1646.7344970703,2535.8798828125,45.564907073975),
vector3(1644.1370849609,2522.7687988281,45.564907073975),
},
['pushups'] = { -- [VECTOR] all positions for doing pushups (x,y,z)
vector3(1646.2286376953,2526.6408691406,45.56485748291),
},
['situps'] = { -- [VECTOR] all positions for doing situps (x,y,z)
vector3(1636.6400146484,2523.9584960938,45.56485748291),
},
['chins'] = { -- [VECTOR] all positions for doing chains (x,y,z,h)
vector4(1643.1622314453,2527.8581542969,45.564876556396,223.83183288574),
vector4(1648.9666748047,2529.62890625,45.564876556396, 223.83183288574),
},
}

RiP.Work

Unlimited different prison works (3 preconfigured jobs)

RiP.Work = {
['gardener'] = {
Ped = {
Location = vector4(1765.62036132,2565.87207031,45.5649223327,183.67814636), -- [VECTOR] ped coords (x,y,z,h)
Hash = 0x49EA5685, -- [HASH] ped hash
},

Task = {
Animation = 'world_human_gardener_plant', -- [STRING] animation name (https://pastebin.com/6mrYTdQv)
Time = 6, -- [INTEGER] animation time in seconds
Positions = 3, -- [INTEGER] stations (different positions) to finish the job
Reward = {300, 500}, -- [INTEGER] reward min-max
},

Translation = { -- [STRING] specific work translations
Label = "Gärtner",
Description = "Jäte Unkraut und pflanze neue Pflanzen! Als Gärtner bist du auf dem Gefängnishof tätig.",
Open = "Drücke ~E~ um mit dem Gärtner zu sprechen.",
Work = "Drücke ~E~ um Unkraut zu jäten.",
},

Positions = { -- [VECTOR] job positions (x,y,z)
vector3(1753.8101806641,2549.5769042969,45.56485748291),
vector3(1729.2991943359,2512.6101074219,45.564903259277),
vector3(1757.3627929688,2509.568359375,45.564929962158),
vector3(1700.6066894531,2553.0666503906,45.56489944458),
vector3(1659.7523193359,2549.4323730469,45.56489944458),
vector3(1646.4643554688,2554.880859375,45.56489944458),
vector3(1622.6451416016,2505.9428710938,45.564891815186),
vector3(1640.4276123047,2490.21484375,45.564903259277),
vector3(1654.9715576172,2511.3999023438,45.564903259277),
},
},
}

RiP.Bribe

RiP.Bribe = {
Cooldown = 5, -- [INTEGER] bribe cooldown in minutes
BribeOffer = {1,1000}, -- [INTEGER] range for bribe offer
Probabilities = { -- [DECIMAL] probabilities of the guards offer with a total maximum of 100% (0.2->20%)
Nothing = 0.4, -- [DECIMAL] probability for getting nothing when bribing
Item = 0.3, -- [DECIMAL] probability for getting an item when bribing
LightWeapon = 0.2, -- [DECIMAL] probability for getting a light weapon when bribing
HeavyWeapon = 0.1 -- [DECIMAL] probability for getting a heavy weapon when bribing
},

Items = { -- possible items to get
{
Name = 'phone', -- [STRING] item name
Price = 300 -- [INTEGER] item price
},
},
LightWeapons = { -- possible light weapons to get
{
Name = 'weapon_bat', -- [STRING] weapon name
Price = 600, -- [INTEGER] weapon price
},
{
Name = 'weapon_knife',
Price = 900,
},
},
HeavyWeapons = { -- possible heavy weapons to get
{
Name = 'weapon_stungun', -- [STRING] weapon name
Price = 2000, -- [INTEGER] weapon price
},
{
Name = 'weapon_pistol',
Price = 3000,
},
},
}

RiP.PrisonGuards

Leave empty to disable bribeable prison guards

RiP.PrisonGuards = {                        -- [VECTOR] bribeable prison guard npcs (x,y,z,h)
vector4(1636.4273681641,2565.529296875,45.564918518066,177.83),
vector4(1760.0346679688,2513.12890625,45.806095123291,76.13),
vector4(1682.4057617188,2476.2521972656,45.825302124023,315.74),
vector4(1690.8575439453,2540.9609375,54.57984161377,357.29),
}

RiP.Items

Handling items in jail:

  • 1 = keep items/weapons
  • 2 = remove items/weapons & give back
  • 3 = remove items/weapons+money & give back
  • 4 = remove items/weapons
  • 5 = remove items/weapons+money
RiP.Items = 1                               -- [INTEGER] 1-5

RiP.BlacklistItems

RiP.BlacklistItems = {                      -- blacklisted items/weapons won't be returned to the player
'bread' -- [STRING] item/weapon name
}

RiP.Clothes

Jail clothes for males and females

RiP.Clothes = {
Enable = true, -- [BOOLEAN] enable/disable prison clothes
Male = {
['tshirt_1'] = 15, ['tshirt_2'] = 0,
['torso_1'] = 146, ['torso_2'] = 7,
['arms'] = 0,
['pants_1'] = 64, ['pants_2'] = 6,
['shoes_1'] = 6, ['shoes_2'] = 0,
},
Female = {
['tshirt_1'] = 15, ['tshirt_2'] = 0,
['torso_1'] = 2, ['torso_2'] = 6,
['arms'] = 2,
['pants_1'] = 2, ['pants_2'] = 0,
['shoes_1'] = 35, ['shoes_2'] = 0,
}
}

RiP.Discord

RiP.Discord = {
Webhook = 'https://discord.com/api/webhooks/', -- [STRING] discord webhook link
Color = 10181046, -- [INTEGER] embed color
Icon = 'https://media.discordapp.net/attachments/900713212922691614/1023544100894552084/logo_background.png', -- [STRING] embed icon
Logs = {
['jail_in'] = true, -- [BOOLEAN] logs on jail in
['jail_edit'] = true, -- [BOOLEAN] logs on prisoner edited
['jail_out'] = true, -- [BOOLEAN] logs on jail out
['jail_break'] = true, -- [BOOLEAN] logs on prison break
},
}