90 lines
		
	
	
	
		
			3.7 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			90 lines
		
	
	
	
		
			3.7 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
| --[[
 | |
|     fmLib - A library for FiveM developers
 | |
| 
 | |
|     || *-> Author
 | |
|     GitHub: https://github.com/meesvrh
 | |
| --]]
 | |
| 
 | |
| ---@class Settings
 | |
| Settings = {
 | |
|     ---@type boolean Whether or not to print console.debug messages
 | |
|     debug = true,
 | |
|     ---@type boolean Whether or not to use sfx for web modules (overrides sfx = true in modules)
 | |
|     useSfx = true,
 | |
|     ---@type boolean Whether or not to ignore resource initialized logs
 | |
|     ignoreResourceInitializedLogs = false,
 | |
| }
 | |
| 
 | |
| ---@enum Defaults
 | |
| ---Fallbacks for when you don't specify a value
 | |
| Defaults = {
 | |
|     MONEY = 'money',
 | |
|     ADMIN_ESX = 'admin',
 | |
|     ADMIN_QB = 'admin',
 | |
|     GOD_QB = 'god',
 | |
| }
 | |
| 
 | |
| ---@enum KeyMappings
 | |
| ---Key mappings for the library
 | |
| KeyMappings = {
 | |
|     CANCEL = { mapper = 'keyboard', key = 'x' },
 | |
| }
 | |
| 
 | |
| --[[
 | |
|     This is used for autodetecting resources
 | |
|     Any table with an export, will have the export called and put in the global variable
 | |
|     Any table with export = false, will be set to true if the resource is started (mostly used for event-based resources)
 | |
|     Any table with export = 'all', will have all exports put in the global variable
 | |
| --]]
 | |
| ---@type table Only change these if you have changed the name of a resource
 | |
| Resources = {
 | |
|     ESX = { name = 'es_extended', export = 'getSharedObject' },
 | |
|     QB = { name = 'qb-core', export = 'GetCoreObject' },
 | |
|     OXInv = { name = 'ox_inventory', export = 'all' },
 | |
|     QBInv = { name = 'qb-inventory', export = 'all', },
 | |
|     QSInv = { name = 'qs-inventory', export = 'all' },
 | |
|     COREInv = { name = 'core_inventory', export = 'all' },
 | |
|     PSInv = { name = 'ps-inventory', export = 'all' },
 | |
|     CHEZZAInv = { name = 'inventory', export = 'all' },
 | |
|     -- MOVHUD = { name = '17mov_Hud', export = 'all' },
 | |
| 
 | |
|     -- Banking
 | |
|     RX_BANKING = { name = 'RxBanking', export = 'all' },
 | |
| 
 | |
|     -- Vehicle Keys
 | |
|     QBVehKeys = { name = 'qb-vehiclekeys', export = false },
 | |
|     CDGarage = { name = 'cd_garage', export = false },
 | |
|     okokGarage = { name = 'okokGarage', export = false },
 | |
|     QSVehKeys = { name = 'qs-vehiclekeys', export = 'all' },
 | |
|     RenewedVehKeys = { name = 'Renewed-Vehiclekeys', export = 'all' },
 | |
|     WASABI_CARLOCK = { name = 'wasabi_carlock', export = 'all' },
 | |
|     TGIANN_HOTWIRE = { name = 'tgiann-hotwire', export = 'all' },
 | |
|     MM_CARKEYS = { name = 'mm_carkeys', export = 'all' },
 | |
|     MRNNEWBVEHICLEKEYS = { name = 'MrNewbVehicleKeys', export = 'all' },
 | |
|     ISVehicleKeys = { name = 'is_vehiclekeys', export = 'all' },
 | |
|     FAST_VEHICLEKEYS = { name = 'fast-vehiclekeys', export = 'all' },
 | |
|     FILO_VEHICLEKEYS = { name = 'filo_vehiclekey', export = 'all'},
 | |
| 
 | |
|     -- Fuel Systems
 | |
|     OXFUEL = { name = 'ox_fuel', export = false },
 | |
|     LEGACYFUEL = { name = 'LegacyFuel', export = 'all' },
 | |
|     CDN_FUEL = { name = 'cdn_fuel', export = 'all' },
 | |
|     RENEWED_FUEL = { name = 'renewed-fuel', export = 'all' },
 | |
|     QBFUEL = { name = 'qb-fuel', export = 'all' },
 | |
|     LC_FUEL = { name = 'lc_fuel', export = 'all' },
 | |
|     PS_FUEL = { name = 'ps-fuel', export = 'all' },
 | |
|     RCORE_FUEL = { name = 'rcore_fuel', export = 'all' },
 | |
|     QS_FUEL = { name = 'qs-fuelstations', export = 'all' },
 | |
|     ND_FUEL = { name = 'ND_Fuel', export = 'all' },
 | |
|     BIGDADDY_FUEL = { name = 'BigDaddy-Fuel', export = 'all' },
 | |
|     GKS_FUEL = { name = 'gks-fuel', export = 'all' },
 | |
|     RIP_FUEL = { name = 'RiP-Fuel', export = 'all' },
 | |
|     MYFUEL = { name = 'myFuel', export = 'all' },
 | |
|     LJ_FUEL = { name = 'lj-fuel', export = 'all' },
 | |
|     MELONS_FUEL = { name = 'melons_fuel', export = 'all' },
 | |
| 
 | |
|     -- TextUIs
 | |
|     OXLib = { name = 'ox_lib', export = 'all' },
 | |
|     JGTextUI = { name = 'jg-textui', export = 'all' },
 | |
|     OKOKTextUI = { name = 'okokTextUI', export = 'all' },
 | |
| }
 | 
