Main Config
This is main configuration file for RCore Police
Welcome to the main configuration file of the RCore Police.
Path: rcore_police/config.lua
Items
Items.Spikes
Type:
stringDefault value:
spikesDescription: Here you can define your item for Spikes.
Example:
Items = {
Spikes = "spikes",
}Items.SpeedCamera
Type:
stringDefault value:
speed_cameraDescription: Here you can define your item for SpeedCamera.
Example:
Items = {
SpeedCamera = "speed_camera",
}Items.Megaphone
Type:
stringDefault value:
megaphoneDescription: Here you can define your item for Megaphone.
Example:
Items = {
Megaphone = "megaphone",
}Items.Barrier
Type:
stringDefault value:
barrierDescription: Here you can define your item for Barrier.
Example:
Items = {
Barrier = "barrier",
}Items.Handcuffs
Type:
stringDefault value:
handcuffsDescription: Here you can define your item for Handcuffs.
Example:
Items = {
Handcuffs = "handcuffs",
}Items.HandcuffsKeys
Type:
stringDefault value:
handcuffs_keyDescription: Here you can define your item for HandcuffsKeys.
Example:
Items = {
HandcuffsKeys = "handcuffs_key",
}Items.PaperBag
Type:
stringDefault value:
paper_bagDescription: Here you can define your item for PaperBag.
Example:
Items = {
PaperBag = "paper_bag",
}Items.Zipties
Type:
stringDefault value:
ziptiesDescription: Here you can define your item for Zipties.
Example:
Items = {
Zipties = "zipties",
}General Settings
Debug
Debug
DebugType:
booleanDefault value:
falseDescription: Enables or disables overall debugging for
rcore_police.Example:
Config = {
Debug = false
}DebugInventory
DebugInventoryType:
booleanDefault value:
falseDescription: Enables debugging related to the inventory module.
Example:
Config = {
DebugInventory = false
}DebugClothing
DebugClothingType:
booleanDefault value:
falseDescription: Enables debugging related to the clothing module.
Example:
Config = {
DebugClothing = false
}DebugAPI
DebugAPIType:
booleanDefault value:
falseDescription: Enables debugging related to the API system.
Example:
Config = {
DebugAPI = false
}DebugServer
DebugServerType:
booleanDefault value:
falseDescription: Enables debugging related to the server enviroment.
Example:
Config = {
DebugServer = false
}DebugLevel
DebugLevelType:
tableDefault value:
{
'NETWORK',
'INFO',
'CRITICAL',
'SUCCESS',
'ERROR',
'API',
'DEBUG',
'MENU',
}Description: Defines the levels of debugging information to be displayed.
Locale
Type:
stringDefault value:
'en'Options:
['en'](additional languages may be supported)Description: Sets the language for the system.
Example:
Config = {
Locale = 'en'
}Integrations / Framework settings
Framework
Type:
enumDefault value:
AUTO_DETECTExample:
Note: Leave it on AUTO_DETECT, if you have one of supported frameworks (recommended).
Framework = AUTO_DETECT -- Will automatically pick up supported framework(s) from list if found on server.
Framework.ESX -- Will try to load ESX if failed to pick up, it will switch to standalone.Inventory
Type:
enumDefault value:
AUTO_DETECTSupported Inventories:
AUTO_DETECT: Auto-detect inventory [Only detecting supported inventories below]
Inventory.ESX:
es_extended(GitHub)Inventory.QB:
qb-inventory(GitHub)Inventory.PS:
ps-inventory(GitHub)Inventory.QS:
qs-inventoryInventory.LJ:
lj-inventoryInventory.MF:
mf-inventoryInventory.OX:
ox-inventoryInventory.CHEEZA:
inventoryInventory.CODEM:
codem-inventoryInventory.TGIANN:
tgiann-inventoryInventory.ORIGEN:
origen-inventorySTANDALONE: No inventory found; you will need to integrate it.
Example:
Note: Leave it on AUTO_DETECT, if you have one of supported inventories (recommended).
Inventory = AUTO_DETECT -- Will automatically pick up supported inventorie(s) from list if found on server.
Inventory.OX -- Will try to load ox_inventory if failed to pick up, it will switch to standalone.Database
Type:
enumDefault value:
AUTO_DETECTSupported Database Connectors:
AUTO_DETECT: Auto-detect DB connector
Database.OX:
oxmysqlDatabase.MYSQL_ASYNC:
mysql-asyncDatabase.GHMATTI:
ghmattimysqlSTANDALONE: No DB connector found
Note: Leave it on AUTO_DETECT, if you have one of supported databases (recommended).
Example:
Database = AUTO_DETECT -- Will automatically pick up db connector(s) from list if found on server.
Database.OX -- Will try to load OX, if fails to detect - no db connector found (police cannot run without database)Clothing
Type:
enumDefault value:
AUTO_DETECTSupported Clothing Systems:
AUTO_DETECT: Auto-detect clothing [Only detecting supported clothing below]
Clothing.RCORE:
rcore_clothing(Store)Clothing.ESX:
skinchanger(GitHub)Clothing.QB:
qb-clothing(GitHub)Clothing.IAPPEARANCE:
illenium-appearance(GitHub)Clothing.CODEM:
codem-appearance(Experimental)Clothing.CRM:
crm-appearance(Experimental)Clothing.TGIANN:
tgiann-clothing(Experimental)Clothing.WASABI:
fivem-appearance - wasabi fork(Experimental)STANDALONE: no clothing found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported clothing system (recommended).
Example:
Clothing = AUTO_DETECT -- Will automatically pick up clothing system
Clothing = Cloth.RCORE -- Will try to use RCore Clothing resourcePrison
Type:
enumDefault value:
AUTO_DETECTSupported Prison Resources:
Prison.RCORE:
rcore-prisonPrison.QB_PRISON:
qb-prisonSTANDALONE: no prison found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported prison system (recommended).
Example:
Prison = AUTO_DETECT -- Will automatically pick up prison system
Prison = Prison.STANDALONE -- No supported prison loadedInvoices
Type:
enumDefault value:
AUTO_DETECTSupported Invoices Resources:
Invoices.QB_PHONE:
qb-phoneInvoices.ESX_BILLING:
esx_billingInvoices.OKOK:
okokBillingSTANDALONE: no billing resource found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported Invoices system (recommended).
Example:
Invoices = AUTO_DETECT -- Will automatically pick up invoices system
Invoices = STANDALONE -- No supported invoices system loadedNotify
Type:
enumDefault value:
AUTO_DETECTSupported Notify Resources:
AUTO_DETECT: Auto-detect Notify resource
Notify.BRUTAL:
brutal_notifyNotify.PNOTIFY:
qb-pNotifyNotify.OX:
ox_libNotify.ESX_NOTIFY:
esx_notifyNotify.QBCORE:
qb-coreNotify.ESX:
es_extendedNotify.MYTHIC:
mythic_notifyNotify.OKOK:
okokNotifySTANDALONE: Will use native notifications included in the resource
Note: Leave it on AUTO_DETECT, if you have one of supported Notify system (recommended).
Example:
Notify = AUTO_DETECT -- Will automatically pick up notifies system
Notify = STANDALONE -- It will use native notifications if failed to find any supported.TextUI
Type:
enumDefault value:
AUTO_DETECTSupported TextUI Resources:
AUTO_DETECT: Auto-detect TextUI resource
TextUI.RCORE:
rcore_prisonTextUI.OX:
ox_libTextUI.QBCORE:
qb-coreTextUI.ESX:
esx_textuiSTANDALONE: No TextUI resource found
Note: Leave it on AUTO_DETECT, if you have one of supported Text UI system (recommended).
Example:
TextUI = AUTO_DETECT -- Will automatically pick up TextUI system
TextUI = TextUI.STANDALONE -- It will use RCore TextUI if not any foundMenu
Type:
enumDefault value:
AUTO_DETECTSupported Menu:
AUTO_DETECT: Auto-detect menu
Menu.RCORE:
rcore_policeMenu.ESX_CONTEXT:
esx_contextMenu.OX:
ox_lib - contextMenu.QB:
qb-menuSTANDALONE: Defaults to
rcore_prison
Note: Leave it on AUTO_DETECT, if you have one of supported Menu system (recommended).
Example:
Menu = AUTO_DETECT -- Will automatically pick up Menu system
Menu = Menu.OX -- Will try to pickup ox_lib contenxt for menus inside prison.
Menu = STANDALONE -- It will use RCore Menu if not any foundDispatch
Type:
enumDefault value:
AUTO_DETECTSupported Dispatch Resources:
AUTO_DETECT: Auto-detect dispatch resources
Dispatch.RCORE:
rcore_dispatchDispatch.QS:
qs-dispatchDispatch.PS:
ps-dispatchDispatch.CD:
cd_dispatchDispatch.CORE:
core_dispatchDispatch.CODEM:
codem_dispatchDispatch.LOVE_SCRIPTS:
emergency_dispatchDispatch.ORIGEN:
origen_policeDispatch.TK:
tk_dispatchDispatch.DUSA:
dusa_DispatchSTANDALONE: No dispatch resource found; you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported Dispatch system (recommended).
Example:
Dispatch = AUTO_DETECT -- Will automatically pick up Dispatch system from the listGarages
Type:
enumDefault value:
AUTO_DETECTSupported Garage Resources:
AUTO_DETECT: Auto-detect garage resources
Garages.QB:
qb-garageGarages.ESX:
esx_garageGarages.QBOX
qbx_garagesSTANDALONE: No garage resource found; you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported garage system (recommended).
Example:
Garages = AUTO_DETECT -- Will automatically pick up Garages system from the listFuel
Type:
enumDefault value:
AUTO_DETECTSupported Fuel Resources:
Fuel.RCORE:
rcore_fuel(Buy)Fuel.LEGACY:
esx_garageFuel.CDN
cdn-fuelFuel.TI
ti_fuelFuel.MY
myFuelFuel.OKOK
okokGasStationFuel.LJ
lj-fuelFuel.ND
nd_fuelFuel.HYON_GAS
HYON_GASSTANDALONE: no fuel found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported Fuel system (recommended).
Example:
Fuel = AUTO_DETECT -- Will automatically pick up Fuel system from the listLicence
Type:
enumDefault value:
AUTO_DETECTSupported Fuel Resources:
Licence.ESX:
esx_licenseLicence.QBCORE:
qb-coreSTANDALONE: no Licence found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported Licence system (recommended).
Example:
Licence = AUTO_DETECT -- Will automatically pick up Fuel system from the listMDT
Type:
enumDefault value:
AUTO_DETECTSupported Fuel Resources:
MDT.PS:
ps_mdtMDT.REDUTZU:
redutzu-mdtSTANDALONE: no mdt found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported MDT system (recommended).
Example:
MDT = AUTO_DETECT -- Will automatically pick up MDT system from the listSociety
Type:
enumDefault value:
AUTO_DETECTSupported Fuel Resources:
Society.ESX:
esx_societySociety.QB_BANKING:
qb-bankingSociety.QB_MANAGEMENT
qb_managementSociety.SNIPE
snipe_bankingSociety.RENEWED
renewed_bankingSociety.FD
fd_bankingSociety.OKOK
okok_bankingSTANDALONE: no society found, running standalone bridge
Note: Leave it on AUTO_DETECT, if you have one of supported Society system (recommended).
Example:
Society = AUTO_DETECT -- Will automatically pick up Society system from the listDuty
Type:
enumDefault value:
AUTO_DETECTSupported Duty Resources:
Duty.ESX_SERVICE:
ESX_SERVICESTANDALONE: no Duty found, running standalone bridge
Note: Leave it on AUTO_DETECT, if you have one of supported Duty system (recommended).
Example:
Duty = AUTO_DETECT -- Will automatically pick up Duty system from the listKeys
Type:
enumDefault value:
AUTO_DETECTSupported Fuel Resources:
Keys.RCORE:
rcore_garageKeys.FIVECODE:
fivecode_carkeysKeys.CD
cd_garageKeys.QS
qs-vehiclekeysKeys.XD
xd_locksystemKeys.OKOK
okokGarageKeys.JAKSAM
vehicle_keysKeys.MR_NEWB
MrNewbVehicleKeysKeys.WASABI
wasabi_carlockSTANDALONE: no keys found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported Keys system (recommended).
Example:
Keys = AUTO_DETECT -- Will automatically pick up Keys system from the listArmoury
Type:
enumDefault value:
AUTO_DETECTSupported Fuel Resources:
Armoury.OX
ox_inventoryArmoury.CHEEZA:
inventorySTANDALONE: no armoury UI found, it will use our solution.
Note: Leave it on AUTO_DETECT, if you have one of supported Keys system (recommended).
Example:
Armoury = AUTO_DETECT -- Will automatically pick up Armoury system from the listPG
Type:
enumDefault value:
AUTO_DETECTSupported Fuel Resources:
PG.OX
ox_libPG.ESX:
es_extendedPG.QBCORE:
qb-coreSTANDALONE: no PG found, you will need to integrate it
Note: Leave it on AUTO_DETECT, if you have one of supported PG system (recommended).
Example:
PG = AUTO_DETECT -- Will automatically pick up PG system from the listPrefixes
Type:
tableDescription: List of prefixes used for third party resources
Example:
Prefixes = {
['qb-policejob'] = 'police:client', -- Event name for qb-policejob
},Events
Type:
tableDescription: Framework event mappings.
Example:
Events = {
['qb-openBossMenu'] = 'qb-bossmenu:client:OpenMenu',
['esx-openBossMenu'] = 'esx_society:openBossMenu',
['esx:playerLoaded'] = 'esx:playerLoaded',
['esx:setJob'] = 'esx:setJob',
['esx:playerLogout'] = 'esx:onPlayerLogout',
['QBCore:Client:OnPlayerLoaded'] = 'QBCore:Client:OnPlayerLoaded',
['QBCore:Client:OnJobUpdate'] = 'QBCore:Client:OnJobUpdate',
['esx_addonaccount:getSharedAccount'] = 'esx_addonaccount:getSharedAccount',
['esx_society:registerSociety'] = 'esx_society:registerSociety',
['skinchanger:getSkin'] = 'skinchanger:getSkin',
['skinchanger:loadClothes'] = 'skinchanger:loadClothes',
['qb-clothing:client:loadOutfit'] = 'qb-clothing:client:loadOutfit',
['QBCore:Server:SetDuty'] = 'QBCore:Server:SetDuty',
['QBCore:Client:SetDuty'] = 'QBCore:Client:SetDuty',
['esx_skin:getPlayerSkin'] = 'esx_skin:getPlayerSkin',
['skinchanger:loadSkin'] = 'skinchanger:loadSkin',
},Society
Business.SocietyPrefix
Type:
stringDefault value:
societyDescription: This is used for prefixing society handy for esx_society
Example:
Business = {
SocietyPrefix = 'society'
},SocietyOptionsESX
Type:
tableDescription: List of options for esx society boss menu
Example:
SocietyOptionsESX = {
checkBal = true, -- Allow to check society money from boss menu.
withdraw = true, -- Allow to withdraw from society (boss menu)
deposit = true, -- Allow to deposit to society (boss menu)
employees = true, -- Allow to hire employees in business (boss menu)
salary = true, -- Allow to adjust employeees salary (boss menu)
grades = true, -- Allow to adjust grades in boss menu.
wash = false, -- Allow to wash business money.
},Tackle
Tackle.Enable
Type:
booleanDefault value:
trueDescription: This is used for enabling/disabling tackle feature.
Example:
Tackle = {
Enable = 'true' -- This is used for enabling/disabling tackle feature.
},Tackle.Key
Type:
stringDefault value:
HDescription: This is default key for tackling closest player.
Example:
Tackle = {
Key = 'H' -- Key used for tackling nearby player.
},Tackle.CooldownKey
Type:
numberDefault value:
500Description: This allows to define cooldown before able to do another tackle.
Example:
Tackle = {
CooldownKey = '500' -- This allows to define cooldown before able to do another tackle.
},Tackle.KeyReleaseTackledPlayer
Type:
stringDefault value:
EDescription: This is key for releasing tackled player from tackle.
Example:
Tackle = {
KeyReleaseTackledPlayer = 'E' -- This is key for releasing tackled player from tackle.
},Tackle.KeyReleaseTackledPlayerCooldown
Type:
floatDefault value:
1.5Description: This allows to define cooldown before able to do another release.
Example:
Tackle = {
CooldownKey = '1.5' -- This allows to define cooldown before able to do another release. (In seconds)
},Tackle.Distance
Type:
floatDefault value:
3.0Description: This allows to define range in which should be the target player for tackle
Example:
Tackle = {
Distance = '3.0' -- This allows to define range in which should be the target player for tackle
},MegaPhone
MegaPhone.Enable
Type:
booleanDefault value:
trueDescription: This is used for enabling/disabling megaphone feature.
Example:
MegaPhone = {
Enable = 'true' -- This is used for enabling/disabling megaphone feature.
},Note: Currently supporting only pma-voice resource.
MegaPhone.HearRangeRadius
Type:
floatDefault value:
50.0Description: This allows to define hear range radius from megaphone
Example:
MegaPhone = {
HearRangeRadius = 50.0 -- This allows to define hear range radius from megaphone
},MegaPhone.ExitKey
Type:
stringDefault value:
EDescription: This is key used to hide (exit) from megaphone.
Example:
MegaPhone = {
ExitKey = 'E' -- This is key used to hide (exit) from megaphone.
},MegaPhone.TurnKey
Type:
stringDefault value:
HDescription: This is key used switch megaphone (on/off) toggle
Example:
MegaPhone = {
TurnKey = 'H' -- This is key used switch megaphone (on/off) toggle
},Duty
Service.Cooldown
Type:
numberDefault value: 2
Description: This is default cooldown when player set on/off duty (in seconds by default)
Example:
Service = {
Cooldown = 2
},Outfits
Outfits.EnableRestoreOutfit
Type:
booleanDefault value:
trueDescription: This option allows to restore outfit in police clothing room
Example:
Outfits = {
EnableRestoreOutfit = true
},Outfits.UseIncludedOutfitSystem
Type:
booleanDefault value:
trueDescription: This allows to enable/disable included outfit system (or switch to own system)
Example:
Outfits = {
UseIncludedOutfitSystem = true -- This allows to enable/disable included outfit system (or switch to own system)
}, Fines
Fines.Enable
Type:
booleanDefault value:
trueDescription: This allows to enable/disable included fines system
Example:
Fines = {
Enable = true -- This allows to enable/disable included fines system
}, Fines.List
Type:
arrayDefault value:
FinesDescription: This load fines from the Fines (rcore_police/configs/fines.lua)
Example:
Fines = {
List = Fines -- This load fines from the Fines (rcore_police/configs/fines.lua)
}, Vehicle info
Vehicle.UseProgressBar
Type:
booleanDefault value:
trueDescription: This allows to enable/disable vehicle info PG (progress bar)
Example:
Vehicle = {
UseProgressBar = true -- This allows to enable/disable vehicle info PG (progress bar)
}, Vehicle.ProgressBarTime
Type:
numberDefault value:
5Description: This allows to define how much time will take to get vehicle info
Example:
Vehicle = {
ProgressBarTime = 5 -- This allows to define how much time will take to get vehicle info (By default: in seconds)
}, Vehicle.TemporaryPersistentFakeInfo
Type:
booleanDefault value:
trueDescription: This setting will for the same vehicle show same generated fake info, until TemporaryPersistentFakeInfoTime
Example:
Vehicle = {
TemporaryPersistentFakeInfo = true -- This setting will for the same vehicle show same generated fake info, until TemporaryPersistentFakeInfoTime
}, Vehicle.TemporaryPersistentFakeInfoTime
Type:
numberDefault value:
5Description: This allows to define how much time will the fake info for the vehicle will persist (By default: in minutes)
Example:
Vehicle = {
TemporaryPersistentFakeInfoTime = 5 -- This allows to define how much time will the fake info for the vehicle will persist (By default: in minutes)
}, Vehicle.NotOwnedVehicleFakeInfo
Type:
booleanDefault value:
trueDescription: This will allow to generate fake informations for non-owned vehicles (NPC) when using F6 - Vehicle - Vehicle information
Example:
Vehicle = {
NotOwnedVehicleFakeInfo = true -- TThis will allow to generate fake informations for non-owned vehicles (NPC) when using F6 - Vehicle - Vehicle information
}, Unlock vehicle
UnlockVehicle.UseProgressBar
Type:
booleanDefault value:
trueDescription: This allow to use progressbar for unlocking vehicle / disable.
Example:
UnlockVehicle = {
UseProgressBar = true --This allow to use progressbar for unlocking vehicle / disable.
}, UnlockVehicle.ProgressBarTime
Type:
numberDefault value:
5Description: This allows to define how much time will take to open the nearby locked vehicle
Example:
Vehicle = {
TemporaryPersistentFakeInfoTime = 5 -- This allows to define how much time will take to open the nearby locked vehicle (By default: in seconds)
}, Select players
This is only supported to run with our RCore Context menu. (Config.Menu)
SelectPlayers.ShowMode
Type:
enumDefault value: SHOW_MODE.ID
Description: This allows to define which show mode will be used for Context Menu, when interacting with nearby players
Example:
SelectPlayers = {
--[[
ShowMode:
* ID: This will only show playerId of nearby players Player: (#1)
* OOC_ID: This will show OOC name with playerId: NewEdit (#1)
]]
ShowMode = SHOW_MODE.ID,
}, SelectPlayers.Marker
Description: This allows to marker (type, color) for interaction with nearby players
Example:
SelectPlayers = {
Marker = {
type = 21, -- The type of marker
r = 255, -- Red
g = 255, -- Green
b = 255, -- Blue
a = 100, -- Alpha
}
}, Reports
Reports.Enable
Type:
booleanDefault value:
trueDescription: This is used to enable/disable report system
Example:
Reports = {
Enable = true -- This is used to enable/disable report system
}, Reports.NotifyAllDepartmentOfficersWhenNewReport
Type:
booleanDefault value:
trueDescription: This is used for notify all departments officers when new report occured at Lobby
Example:
Reports = {
NotifyAllDepartmentOfficersWhenNewReport = true -- This is used for notify all departments officers when new report occured at Lobby
}, Reports.NotifyAllDepartmentOfficersWhenUpdatedReport
Type:
booleanDefault value:
trueDescription: This is used for notify all departments officers when report was updated by officer
Example:
Reports = {
NotifyAllDepartmentOfficersWhenUpdatedReport = true -- This is used for notify all departments officers when report was updated by officer
}, Reports.LimitReportsPerPlayer
Type:
booleanDefault value:
trueDescription: This is used for limit reports per player, to not able spam the reports
Example:
Reports = {
LimitReportsPerPlayer = true -- This is used for limit reports per player, to not able spam the reports
}, Reports.CooldownResetPerPlayer
Type:
numberDefault value:
5Description: This allows to define how much time will take to cooldown reset for reports (By default: in minutes)
Example:
Reports = {
CooldownResetPerPlayer = 5 -- This allows to define how much time will take to cooldown reset for reports (By default: in minutes)
}, Last updated
Was this helpful?