136 lines
		
	
	
	
		
			4.4 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			136 lines
		
	
	
	
		
			4.4 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
 | 
						|
Config = {}
 | 
						|
 | 
						|
-- set at least one to false, otherwise both menus will clash
 | 
						|
--   and don't forget to comment the menu in the fxmanifest.lua if you don't use it!
 | 
						|
--   Setting both to true does not work!
 | 
						|
-- setting both to false results in no menu being usable at all
 | 
						|
-- you can then just include the exports in your own menu if you have one
 | 
						|
Config.useContextMenu = false
 | 
						|
Config.useNativeUI = true
 | 
						|
 | 
						|
-- set to nil if you don't want to use the command
 | 
						|
Config.lockCommand = "lock"
 | 
						|
-- set to nil if you don't want to use the button (303, U)
 | 
						|
Config.lockKey = 10 -- PageUp
 | 
						|
 | 
						|
-- set to nil if you don't want to use the command
 | 
						|
Config.keyMenuCommand = "keys"
 | 
						|
-- set to nil if you don't want to use the button (311, K)
 | 
						|
Config.keyMenuKey = 56 -- F9
 | 
						|
 | 
						|
-- maximum distance (in meters) between the player and ContextMenu interaction point
 | 
						|
Config.maxDistance = 5.0
 | 
						|
 | 
						|
-- you can define more keymakers by just adding additional entries
 | 
						|
Config.Keymakers = {
 | 
						|
	{
 | 
						|
		-- ped model (yes, the ` symbols are correct)
 | 
						|
		model = `s_m_m_autoshop_01`,
 | 
						|
		-- position and heading vector4(x, y, z, heading)
 | 
						|
		pos = vector4(170.33, -1799.13, 28.32, 313.0)
 | 
						|
	},
 | 
						|
}
 | 
						|
 | 
						|
-- define costs for creating a new key and exchanging locks
 | 
						|
Config.Costs = {
 | 
						|
	GetMoney		= "cash", -- cash or bank
 | 
						|
	newKey			= 150,
 | 
						|
	exchangeLocks	= 650
 | 
						|
}
 | 
						|
 | 
						|
-- define job vehicles like this (this acts as a key for those vehicles)
 | 
						|
--   models in ``
 | 
						|
--   either exact plates or just a string that should be in the vehicles plate
 | 
						|
--     e.g. "LSPD" will let a police officer lock/unlock any vehicle with the plate "LSPD1337" or "13LSPD37"
 | 
						|
Config.JobVehicles = {
 | 
						|
-- examples:
 | 
						|
	--["police"] = {
 | 
						|
		--models = {
 | 
						|
			--`police`,
 | 
						|
			--`policeb`,
 | 
						|
			--`pbus`
 | 
						|
		--},
 | 
						|
		--plates = {
 | 
						|
			--""
 | 
						|
		--}
 | 
						|
	--},
 | 
						|
	--["mechanic"] = {
 | 
						|
	--	models = {
 | 
						|
	--		`flatbed`
 | 
						|
	--	},
 | 
						|
	--	plates = {
 | 
						|
	--		"MECH"
 | 
						|
	--	}
 | 
						|
	--},
 | 
						|
}
 | 
						|
 | 
						|
Config.Strings = {
 | 
						|
	keymaker		= "Schlüsseldienst",
 | 
						|
 | 
						|
	helpText		= "~w~Drück ~g~E ~w~um mit den Schlüsseldienst zu reden",
 | 
						|
	
 | 
						|
	lockNotif		= "~r~Fahrzeug Abgeschlossen",
 | 
						|
	unlockNotif		= "~g~Fahrzeug Aufgeschlossen",
 | 
						|
 | 
						|
	createSuccess	= "~g~Ersatzschlüssel Nachgemacht %s.",
 | 
						|
	createNoMoney	= "~r~Schlüssel kann nicht nachgemacht werden, du hast zu wenig Geld dabei",
 | 
						|
	createFailed	= "~r~Ersatzschlüssel machen Fehlgeschlagen %s!",
 | 
						|
 | 
						|
	giveSuccess		= "~g~Schlüssel an %s Weitergegeben.",
 | 
						|
	giveSuccessPly	= "~g~Schlüssel von %s erhalten ",
 | 
						|
	giveFailed		= "~r~Schlüssel geben von %s Fehlgeschlagen",
 | 
						|
 | 
						|
	removeSuccess	= "~r~Schlüssel für ~g~%s ~r~aus deiner Tasche Entfernt",
 | 
						|
	removeNoMoney	= "~r~Schloss kann nicht bezahlt werden, du hast kein Geld dabei",
 | 
						|
	removeFailed	= "~r~Entfernen von Schlüssel für ~g~%s ~r~Fehgeschlagen!",
 | 
						|
 | 
						|
	deleteKeys		= "~r~Du hast für dein ~g~%s ~r~Das Schloss ausgetasucht, und somit sind jetzt alle Schlüssel nicht mehr Gültig.",
 | 
						|
 | 
						|
	-- NativeUI
 | 
						|
	NUI = {
 | 
						|
		-- keymaker menu
 | 
						|
		keymakerMenuTitle	= "Schlüssel-System",
 | 
						|
		keymakerMenuSub		= "~g~Erstelle Schlüssel und Tausche deine Fahrzeug Schlösser aus",
 | 
						|
 | 
						|
		-- create key
 | 
						|
		createKeyTitle		= "~g~Ersatzschlüssel erstellen",
 | 
						|
		createKeyDesc		= "Erstelle einen neuen Schlüssel für eines Ihrer Fahrzeuge ",
 | 
						|
		createVehicleKey	= "Erstelle einen Schlüssel für Ihr  %s mit den Kennzeichen %s. ~g~Preis "..Config.Costs.newKey.."$",
 | 
						|
 | 
						|
		-- invalidate Key
 | 
						|
		invalKeyTitle		= "~r~Fahrzeug Schlöss Tauschen",
 | 
						|
		invalKeyDesc		= "Tausche die Schlösser von Ihren Auto aus, alle schlüssel sind damit nicht mehr Gültig!",
 | 
						|
		invalVehicleKey		= "Schloss Tauschen von %s mit den Kennzeichen %s. ~g~Preis "..Config.Costs.exchangeLocks.."$",
 | 
						|
 | 
						|
		-- key Inventory
 | 
						|
		keyInventoryTitle	= "Schlüssel",
 | 
						|
		keyInventorySub		= "~g~Da sind alle deine Schlüssel",
 | 
						|
 | 
						|
		-- master keys
 | 
						|
		masterKeysTitle		= "Hauptschlüssel",
 | 
						|
		masterKeysDesc		= "~g~Zeigt alle deine Hauptschlüssel an",
 | 
						|
 | 
						|
		-- additional keys
 | 
						|
		keysTitle			= "Ersatzschlüssel",
 | 
						|
		keysDesc			= "~g~Zeigt alle deine Ersatzschlüssel an",
 | 
						|
		giveKeyTitle		= "~g~Ersatzschlüssel Geben",
 | 
						|
		giveKeyDesc			= "~g~Ersatzschlüssel Geben",
 | 
						|
		removeKeyTitle		= "~r~Schlüssel Entfernen",
 | 
						|
		removeKeyDesc		= "~r~Schlüssel Entfernen",
 | 
						|
	},
 | 
						|
 | 
						|
	-- ContextMenu
 | 
						|
	CM = {
 | 
						|
		-- keymaker menu
 | 
						|
		createKeyTitle		= "Ersatzschlüssel",
 | 
						|
		invalKeyTitle		= "Schlossaustauschen",
 | 
						|
 | 
						|
		-- key inventory
 | 
						|
		masterKeysTitle		= "~g~Hauptschlüssel",
 | 
						|
		keysTitle			= "~b~Ersatzschlüssel",
 | 
						|
 | 
						|
		-- other player
 | 
						|
		giveKey				= "~r~Gebe ein Schlüssel, an der Person",
 | 
						|
	}
 | 
						|
}
 |