⚙️Configuration
Configuration guide of the Jail System
STG = {}
STG.withCommand = true
STG.command = "jail"
STG.withKey = true
STG.key = "f6"
STG.DeliveryDistance = 10.0 -- you can increase it if the police vehicle gets stuck
STG.spawnRadius = 100.0 -- In what distance will the police car be spawned?
STG.policeStation = vector4(445.424164, -1019.815369, 28.218262, 280.629913) -- location where the police vehicle will deliver
STG.releasePoints = { -- locations of where to send when the criminal's sentence is over
vector4(425.340668, -979.806580, 30.695190, 82.204727)
}
STG.detentionCoords = {
vector4(459.283508, -997.819763, 24.898926, 269.291351)
}
STG.jailCoords = {
vector4(1790.400024, 2574.619873, 45.792725, 90.708656)
}
function addKey(vehicle, plate)
if GetResourceState('qb-vehiclekeys') == 'started' then
TriggerEvent("vehiclekeys:client:SetOwner", plate)
else
-- your code here
end
end
STG.prisonerClothes = {
["male"] = {
tshirt_1 = 15,
tshirt_2 = 0,
torso_1 = 146,
torso_2 = 0,
decals_1 = 0,
decals_2 = 0,
arms = 0,
pants_1 = 3,
pants_2 = 7,
shoes_1 = 12,
shoes_2 = 12,
chain_1 = 50,
chain_2 = 0
},
["female"] = {
tshirt_1 = 15,
tshirt_2 = 0,
torso_1 = 146,
torso_2 = 0,
decals_1 = 0,
decals_2 = 0,
arms = 0,
pants_1 = 3,
pants_2 = 7,
shoes_1 = 12,
shoes_2 = 12,
chain_1 = 50,
chain_2 = 0
}
}
STG.whitelistItems = { -- What items should not be bought when you go to jail?
"bread",
"water"
}
STG.policeNPCs = {
"s_m_m_prisguard_01"
}
STG.policeCars = {
"police",
"police2"
}
STG.Language = "en"
STG.Locale = {
["en"] = {
release = "~b~You Will Release at: ",
released = "You are free now!"
},
["de"] = {
release = "~b~You Will Release at: ",
released = "You are free now!"
}
}Last updated