-- Location: rcore_prison/configs/config.lua-- Framework-- !!! IF YOU ARE USING QBCORE / ESX -> YOU DONT NEED TO TOUCH THIS !!!!-- !!! IF YOU ARE USING QBCORE / ESX -> YOU DONT NEED TO TOUCH THIS !!!!-- !!! IF YOU ARE USING QBCORE / ESX -> YOU DONT NEED TO TOUCH THIS !!!!Framework =1, --[ 0 OR NIL = None | 1 = ESX | 2 = QBCore | 3 = Other ] Choose your frameworkMySQL =nil,--[ 0 = 'oxmysql' | 1 = 'mysql-async' | 2 = 'ghmattimysql' ] Choose your SQLNotify = { DefaultNotify =false, -- Notify provided by rcore_prison event ='rcore_prison:renderNotification' -- Retval: serverId, data},-- FRAMEWORK_TRIGGERS-- !!! IF YOU ARE USING QBCORE / ESX -> YOU DONT NEED TO TOUCH THIS !!!!-- !!! IF YOU ARE USING QBCORE / ESX -> YOU DONT NEED TO TOUCH THIS !!!!-- !!! IF YOU ARE USING QBCORE / ESX -> YOU DONT NEED TO TOUCH THIS !!!!-- !!! IF YOU ARE USING QBCORE / ESX -> YOU DONT NEED TO TOUCH THIS !!!!FrameworkTriggers = { notify ='', -- ['esx', 'qbcore'] Set the notification event, if left blank, default will be used object = '', --['esx', 'qbcore'] Set the shared object event, if left blank, default will be used (deprecated for QBCore)
playerUnloadedServer = '', -- ['esx', 'qbcore'] Set playerLogout (server-side) event, if left blank, automatic detection will be performed
playerLoadedServer = '', -- ['esx', 'qbcore'] Set playerLoadedServer (server-side) event, automatic detection will be performed
playerUnloadedClient = '', -- ['esx', 'qbcore'] Set playerUnloadedClient (client-side) event, automatic detection will be performed
playerLoadedClient = '', -- ['esx', 'qbcore'] Set playerLoadedClient (client-side) event, automatic detection will be performed
resourceName ='', -- ['esx', 'qbcore'] Set the resource name, if left blank, automatic detection will be performed resourceNameClothing = '', -- [ ESX = 'skinchanger' / QBCore = 'qb-clothing', 'fivem-appearance' ] Set the clothing resource name, if left blank, automatic detection will be performed
resourceNamePhone = '', -- '[ 'qb-phone', 'npwd', 'gksphone', 'qs-smartphone'] Set the phone resource name for booth usage, if left blank, automatic detection will be performed
},Presets = {-- Key: resourceName ['rcore_prison_map']-- Preset name: ['rcore'] | data/presets/<XX> Maps = { ['rcore_prison_map'] ='rcore', ['prison_main'] ='desertos', ['cfx-gabz-prison'] ='gabz', ['int_prison'] ='unclejust', ['molo_alcatraz'] ='alcatraz', }},-- Defined phones that are automatically loaded, if you dont define any: qb-phone, npwd, gksphone, qs-smartphoneScriptEvents = { ['qb-clothing'] = { loadPlayerClothing ='qb-clothing:client:loadPlayerClothing', loadOutfit ='qb-clothing:client:loadOutfit', }},Frontend = { AlignMenu ='top-left', -- 'top-left', 'top-right' useLibrary = 'rcore', -- Select your preffered library for menus: 'ox_lib', 'qb-menu', 'es_extended', 'es_context', 'rcore'
Libraries = { ['esx_context'] =true, ['es_extended'] =true, ['ox_lib'] =true, ['qb-menu'] =true, },},-- Related to phone booths-- Note: This is listed of supported phones-- For setting your phone & locales: check [rcore_prison/web/build/config.js]ImportAPI =false,SupportedPhones = { ['gksphone'] =true, ['qb-phone'] =true, ['qs-smartphone'] =true, ['npwd'] =true,},Dashboard = { AddSentence = { ShowNames =true-- Want to hide player names in Add Sentence - list (dashboard - panel) }},RenderNPCBlips =true, -- Do you want to show where are specific things in prison area (true/false)RenderPrisonMap =true, -- Do you want to render prison yard and stuff? (true/fase)ECONOMY_ITEM ='cigar', -- Used along for Dealers around Prison yard or credits as payment thing.BoothMaxCallLenght =5*60*1000, -- Max call lenght for calll session.BoothTakeCreditsPeriod =60*1000, -- Each minute reduce prisoner credits (BoothPricePerMinute)BoothPricePerMinute =2, -- 2 Credits per BoothTakeCreditsPeriodOutfitSkipSelection =false, -- Would you like to get Prisoner instantly in Prison and define own actions?OutfitSelectionTimeout =10*1000, -- How much time prisoner have time for outfit selection.PackageCooldown =30*1000, -- For Ciggarets packaging minigame, delay between each package sessionInteractionDist =1.5, -- Used for cache system, when you are not using target interaction.CheckDistTimeout = 5 * 1000, -- Timeout when user is jailed, to start CheckDist for clients if #Prisoners <= 0 | Dont touch this!!
CheckEscapeDist =300.0, -- Escape check distCheckDist =true, -- Prisoners only (escape when far away)Language ='en', -- 'en', 'csTarget = { CheckMenuDistInterval =250, -- How many tick interval should check dist opened menu? CheckMenuDist =1.5, -- Distance of when hiding of interaction menu should perform? CheckDist =1.5, -- Distance of showing options when performing target},Activities = { DRAW_LINE = { rgb =vec3(14, 227, 7), -- Related to jobs, as help draw line opacity =255-- Opacity }},
Name
param
desc
OutfitSelectionTimeout
10 * 1000
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.
Language
'en'
Here you can define your language.
DefaultNotify
true/false
Do you like to use native notifications or own?
ReduceSentenceOffline
true/false
True - Prisoners can be offline and jail time is reducing
False - Prisoner needs to be on server for reducing time.
NotifyNewJobMember
true/false
True - Notify job members when prisoner join activity on Prison yard.
False - To disable notify of new job member (activity)
CS = {
DisableGameControls = true, -- When doing community service task, disabled any interaction (handy for abuser with clearing anims and so on)
DefaultPeroll = 5, -- 6 Hours, when there is no defined time for jailed user CSW (command)
Place = vec3(236.464233, -409.489075, 47.924313), -- Place of NPC where CS user is reporting him self and taking tasks.
CleaningAnimTime = 0.1 * 1000,
ReducePeroll = 1, -- 1 peroll from CS sentence, after finished current CS task
PoolCooldown = 5 * 60 * 1000, -- When user finished specific zone, when should be added back to zone select pool?
OUTLINE = {
color = vec3(255, 255, 255), -- Color of outline on entity
opacity = 80 -- Opacity of outline.
}
}
Target = {
CheckMenuDistInterval = 250, -- How many tick interval should check dist opened menu?
CheckMenuDist = 1.5, -- Distance of when hiding of interaction menu should perform?
CheckDist = 1.0, -- Distance of showing options when performing target
},
You define specific iems, which prisoners can bring inside Prison.
Item name
state
['water']
true
Usage:
-- Location: rcore_prison/configs/config.lua ['KeepItems']-- All of these items, can user bring inside jail / outside.-- Note: Its recommended to define canteen items, so prisoners can get them.KeepItems = { ['water'] =true, ['sprunk'] =true, ['coffee'] =true, ['ecola'] =true, ['ecola_light'] =true, ['sludgie'] =true},
Level
You can define level debug, very useful when you want to see whats happening in background.