Configs
Codesign resources contain various editable/unobscured files such as client/server functions etc.
Last updated
Was this helpful?
Was this helpful?
Cfg = {}
---------------------------------------------------------------------
-- AUTO-DETECT
-- 'auto_detect' will scan running resources and pick the best match.
-- Only change values if you want to FORCE a specific system.
---------------------------------------------------------------------
-- auto_detect | esx | qbcore | qbox | vrp | standalone | other
Cfg.Framework = 'auto_detect'
-- auto_detect | mysql-async | ghmattimysql | oxmysql | none
Cfg.Database = 'auto_detect'
Cfg.BridgeDebugSQL = false -- Print SQL queries
Cfg.BridgeDebug = false -- Print debug information
Cfg.Language = 'EN' -- EN | ES | FR | DE | IT | PT | PT-BR | NL | PL | RU | TR | ZH | JA | AR | UA | CZ | DK | SE | NO | KR | HI
-- auto_detect | cd_notification | chat | esx | mythic_notify | okokNotify | origen_notify | ox_lib | pNotify | ps-ui | qbcore | qbox | rtx_notify | vms_notifyv2 | other
Cfg.Notification = 'auto_detect'
-- auto_detect | cd_drawtextui | jg-textui | ox_lib | okokTextUI | ps-ui | qbcore | vms_notifyv2 | none | other
Cfg.DrawTextUI = 'auto_detect'
-- auto_detect | ox_target | qb-target | none
Cfg.Target = 'auto_detect'
-- auto_detect | ox_inventory | qb-inventory | qs-inventory | esx | qbcore | none | other
Cfg.Inventory = 'auto_detect'
-- auto_detect | cd_easytime | qb-weathersync | vSync | none | other
Cfg.TimeWeather = 'auto_detect'
-- auto_detect | F_RealCarKeysSystem | ak47_qb_vehiclekeys | ak47_vehiclekeys | fivecode_carkeys | loaf_keysystem | mk_vehiclekeys | MrNewbVehicleKeys | qb-vehiclekeys | qbx_vehiclekeys | qs-vehiclekeys | stasiek_vehiclekeys | t1ger_keys | tgiann-hotwire | ti_vehicleKeys | vehicles_keys | wasabi_carlock | xd_locksystem | none | other
Cfg.VehicleKeys = 'auto_detect'
-- auto_detect | BigDaddy-Fuel | cdn-fuel | esx-sna-fuel | FRFuel | lc_fuel | LegacyFuel | lj-fuel | myFuel | ND_Fuel | okokGasStation | ox_fuel | ps-fuel | qb-fuel | qb-sna-fuel | rcore_fuel | Renewed-Fuel | ti_fuel | x-fuel | none | other
Cfg.VehicleFuel = 'auto_detect'
-- auto_detect | gcphone | lb-phone | npwd | okokPhone | qb-phone | esx | none | other
Cfg.Phone = 'auto_detect'
-- auto_detect | cd_dispatch | cd_dispatch3d | codem-dispatch | core_dispatch | esx_outlawalert | emergencydispatch | lb-tablet | ps-dispatch | qs-dispatch | rcore_dispatch | tk_dispatch | none | other
Cfg.Dispatch = 'auto_detect'
---------------------------------------------------------------------
ESXVehiclesTables = { 'vehicles', } -- Add additional vehicles tables if needed, used for storing vehicle data on esx.
---------------------------------------------------------------------
function Locale(locale_key, ...)
local message = LocalesTable[Cfg.Language][locale_key]
if not message then
ERROR('0081', 'locale not found in locales.lua: '..(locale_key or 'nil')..'\n')
return
end
if ... == nil then
return message
end
local ok, formatted_message = pcall(string.format, message, ...)
if ok then
return formatted_message
else
ERROR('0082', 'String format failed for locale key: ' .. (locale_key or 'nil')..'. Data: '..json.encode({...})..'\n')
return
end
end
Cfg.Keys={['ESC']=322,['F1']=288,['F2']=289,['F3']=170,['F5']=166,['F6']=167,['F7']=168,['F8']=169,['F9']=56,['F10']=57,['~']=243,['1']=157,['2']=158,['3']=160,['4']=164,['5']=165,['6']=159,['7']=161,['8']=162,['9']=163,['-']=84,['=']=83,['BACKSPACE']=177,['TAB']=37,['Q']=44,['W']=32,['E']=38,['R']=45,['T']=245,['Y']=246,['U']=303,['P']=199,['[']=39,[']']=40,['ENTER']=18,['CAPS']=137,['A']=34,['S']=8,['D']=9,['F']=23,['G']=47,['H']=74,['K']=311,['L']=182,['LEFTSHIFT']=21,['Z']=20,['X']=73,['C']=26,['V']=0,['B']=29,['N']=249,['M']=244,[',']=82,['.']=81,['LEFTCTRL']=36,['LEFTALT']=19,['SPACE']=22,['RIGHTCTRL']=70,['HOME']=213,['PAGEUP']=10,['PAGEDOWN']=11,['DELETE']=178,['LEFTARROW']=174,['RIGHTARROW']=175,['TOP']=27,['DOWNARROW']=173,['NENTER']=201,['N4']=108,['N5']=60,['N6']=107,['N+']=96,['N-']=97,['N7']=117,['N8']=61,['N9']=118,['UPARROW']=172,['INSERT']=121}
