Configs
Codesign resources contain various editable/unobscured files such as client/server functions etc.
Lua Config
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
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 | custom
Cfg.Notification = 'auto_detect'
-- auto_detect | cd_drawtextui | jg-textui | ox_lib | okokTextUI | ps-ui | qbcore | vms_notifyv2 | none
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
Cfg.Inventory = 'auto_detect'
-- auto_detect | cd_easytime | qb-weathersync | vSync | none
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
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
Cfg.VehicleFuel = 'auto_detect'
-- auto_detect | gcphone | lb-phone | npwd | okokPhone | qb-phone | esx | none
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
Cfg.Dispatch = 'auto_detect'
---------------------------------------------------------------------
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
endLast updated
Was this helpful?

