cfg_locales.lua

local Config = require("config.cfg_main")

return {
	UI = {
		vehicleList = {
			header = {
				title = "garage",
				tag = "system",
				description = "Welcome to your Personal Garage!\nEffortlessly view and manage all of your vehicles.",
			},
			interaction = {
				searchVehicle = "Search Vehicle...",
				selectVehicle = "Select Vehicle",
				manageTooltip = "Manage Vehicle",
			},
			state = {
				isParked = "Parked",
				notParked = "Not Parked",
			},
		},

		vehicleInfo = {
			header = {
				title = "vehicle",
				tag = "info",
				description = "View detailed information about your vehicle.\nPark it out or pay the impound service as needed.",
			},
			infoLabels = {
				vehicleName = "Vehicle Name",
				vehicleClass = "Vehicle Class",
				vehPlate = "Vehicle Plate",
				vehicleFuel = "Vehicle Fuel",
				vehicleHealth = "Vehicle Health",
			},
			buttons = {
				parkOut = "Park Out",
				payImpound = "Pay Impound",
			},
		},

		manageVehicle = {
			vehicleActions = {
				renameVehicle = {
					label = "Rename Your Vehicle",
					description = "Change your vehicle's nickname.",
					inputPlaceholder = "New vehicle nickname...",
					resetTooltip = "Reset Nickname",
				},
				refuelVehicle = {
					label = "Refuel Your Vehicle",
					description = "Fill up your vehicle's tank.",
					confirmTooltip = "Price: $",
					pricePerFuel = tonumber(Config.Payment.FuelPricePerLiter),
				},
				repairVehicle = {
					label = "Repair Your Vehicle",
					description = "Fix any damage to your vehicle.",
					question = "Do you want to repair your vehicle?",
					confirmTooltip = ("Price: $%s"):format(Config.Payment.RepairPrice),
				},
			},
			title = "Vehicle Management",
			buttons = {
				confirm = "Confirm",
				cancel = "Cancel",
			},
		},

		dialog = {
			exit = {
				promptText = "Do you want to exit your Garage?",
				confirm = "Confirm",
				cancel = "Cancel",
			},
			payImpound = {
				promptText = "Do you want to get your vehicle from the impound?",
				confirmTooltip = ("Price: $%s"):format(Config.Payment.ImpoundPrice),
				confirm = "Confirm",
				cancel = "Cancel",
			},
		},
	},

	--? For icons, use Fontawesom: https://fontawesome.com/icons/
	Menu = {
		Garage = {
			HelpText = "~INPUT_CONTEXT~  Garage Options", --? Button Reference: https://docs.fivem.net/docs/game-references/controls/
			FloatingText = "~INPUT_CONTEXT~ Garage Options", --? Button Reference: https://docs.fivem.net/docs/game-references/controls/
			Target = {
				Icon = "fa-solid fa-warehouse",
				Label = "Garage Options",
			},

			Title = "%s - Garage",

			OpenGarage = {
				Icon = "warehouse",
				Title = "Enter Personal Garage",
				Description = "Browse and manage your vehicle collection.",
			},
			ParkList = {
				Icon = "square-parking",
				Title = "Store Nearby Vehicle",
				Description = "Store your nearby vehicles in this garage.",

				Vehicle = {
					Icon = "list-ul",
					Title = "%s",
					Description = "Vehicle Class: %s **|** Plate: %s",
				},
				NoVehicles = {
					Icon = "circle-xmark",
					Title = "No Vehicles Found",
					Description = "No vehicles you own are parked nearby in this area.",
				},
			},
		},

		VehicleKeys = {
			Title = "Key Managment",
			Lock = {
				Icon = "lock",
				Title = "Vehicle Lock",
			},
			SharedKeys = {
				Icon = "key",
				Title = "Manage Shared Keys",

				Management = {
					Title = "Spare Key Management",

					Share = {
						Title = "Share Spare Key",
						Icon = "key",

						SelectPlayer = {
							Icon = "user",
							Title = "Spare Key Management",
							Label = "The person you want to give your spare key to.",

							Player = {
								Label = "[%s] %s",
							},
						},
					},
					Remove = {
						Icon = "trash-alt",
						Title = "Remove Spare Key",

						Key = {
							Icon = "trash-alt",
							Title = "%s",
							Description = "Vehicle Plate: %s",
						},
						NoKeys = {
							Icon = "circle-xmark",
							Title = "You havent given your spare keys to someone.",
						},
						ConfirmRemove = {
							Header = "Spare Key Removal Confirmation",
							Content = "Remove spare keys for license plate **%s** from **%s**. Are you sure?",
						},
					},
				},
			},
			Target = {
				Lock = {
					Icon = "fa-solid fa-lock",
					Label = "Vehicle Lock",
				},
				SharedKeys = {
					Icon = "fa-solid fa-key",
					Label = "Manage Shared Keys",
				},
			},
		},
	},

	KeyMapping = {
		VehKeysMenu = "Open Vehicle Lock Menu",
		LockVehicle = "Toggle Vehicle Lock",
		SharedKeys = "Open Vehicle Shared Keys",
	},

	Commands = {
		GiveVehicle = {
			GiveCar = {
				Description = "Give a car to a player and add it to their garage.",
				Parameters = {
					Target = "The ID of the player receiving the car.",
					Model = "The model of the car (e.g., 'adder').",
					Plate = "Optional: A custom license plate. Leave blank to generate one automatically.",
				},
			},
			GivePlane = {
				Description = "Give a plane to a player and add it to their garage.",
				Parameters = {
					Target = "The ID of the player receiving the plane.",
					Model = "The model of the plane (e.g., 'buzzard').",
					Plate = "Optional: A custom license plate. Leave blank to generate one automatically.",
				},
			},
			GiveBoat = {
				Description = "Give a boat to a player and add it to their garage.",
				Parameters = {
					Target = "The ID of the player receiving the boat.",
					Model = "The model of the boat (e.g., 'seashark').",
					Plate = "Optional: A custom license plate. Leave blank to generate one automatically.",
				},
			},
		},
	},

	Notify = {
		NoVehicles = { title = "Garage", description = "You don't have any vehicles in your garage.", type = "error" },
		Parking = {
			CarParkedOut = { title = "Garage", description = "Successfully parked out %s", type = "success" },
			CarParkedIn = { title = "Garage", description = "Successfully parked in %s", type = "success" },
			NoFreeParkSlot = { title = "Garage", description = "No available parking slots at this location.", type = "error" },
			ParkOutError = { title = "Garage", description = "An error occurred while attempting to park out the vehicle.", type = "error" },
		},
		Payment = {
			NoMoney = { title = "Garage", description = "You don't have enough money!", type = "error", position = "top-center" },
			PaidFuel = { title = "Garage", description = "You paid $%s for the fuel costs.", type = "info", position = "top-center" },
			PaidRepair = { title = "Garage", description = "You paid $%s for the repair costs.", type = "info", position = "top-center" },
			PaidImpound = { title = "Garage", description = "You paid $%s for the impound fine.", type = "info", position = "top-center" },
		},
		VehLock = {
			MenuError = { title = "Vehicle Lock", description = "An error occurred while trying to open the menu.", type = "error" },

			Locked = { title = "Vehicle Lock", description = "You have locked your vehicle.", type = "warning" },
			Unlocked = { title = "Vehicle Lock", description = "You have unlocked your vehicle.", type = "success" },

			NoVehicleNearby = { title = "Vehicle Lock", description = "There are no valid vehicles nearby.", type = "error" },
			NotOwned = { title = "Vehicle Lock", description = "This vehicle is not owned by you.", type = "error" },
			LockedWhileInside = { title = "Vehicle Lock", description = "You cannot exit the vehicle while its locked.", type = "error" },

			ShareKeys = {
				NoPlayers = { title = "Spare Key", description = "There is no one available to receive your spare key.", type = "error" },
				NoPlayerSelected = { title = "Spare Key", description = "You have to select a person to share your spare key.", type = "error" },

				AlreadyShared = { title = "Spare Key", description = "This person already has the keys to this vehicle.", type = "error" },
				ShareKeyFailed = { title = "Spare Key", description = "An error occurred while trying to share the keys.", type = "error" },

				KeysReceived = { title = "Spare Key", description = "You have received spare keys for the plate [%s].", type = "success" },
				KeysGiven = { title = "Spare Key", description = "You have successfully shared the keys for the plate [%s] with player %s.", type = "success" },

				KeysRevoked = { title = "Spare Key", description = "Your access to the spare keys for the plate [%s] has been revoked.", type = "warning" },
				KeysRemoved = { title = "Spare Key", description = "You have successfully removed access to the keys for the plate [%s] from player %s.", type = "success" },
			},
		},
		GiveVehicle = {
			NoPerms = { title = "Give Vehicle", description = "You do not have permission to use this command.", type = "error" },
			Success = { title = "Give Vehicle", description = "Successfully gave a %s to player with ID %s.", type = "success" },
			Failure = { title = "Give Vehicle", description = "Failed to give a %s to player with ID %s.", type = "error" },
		},
	},
	Announce = {
		AutoRemover = {
			FirstMessage = { title = "Impound", description = "All vehicles outside a safe area or without a driver will be impounded in %s minutes.", type = "warning", position = "top-center" },
			DeleteInMins = { title = "Impound", description = "All vehicles outside a safe area or without a driver will be impounded in %s minutes.", type = "warning", position = "top-center" },
			DeleteInMin = { title = "Impound", description = "All vehicles outside a safe area or without a driver will be impounded in %s minute.", type = "warning", position = "top-center" },
			DeletedVehicles = { title = "Impound", description = "All vehicles have been impounded.", type = "warning", position = "top-center" },
		},
	},
	Progress = {
		VehLock = {
			Locking = "Locking...",
			Unlocking = "Unlocking...",
		},
	},

	VehClasses = {
		Compact = "Compact",
		Sedan = "Sedan",
		SUV = "SUV",
		Coupe = "Coupe",
		Muscle = "Muscle",
		SportsClassic = "Sports Classic",
		Sport = "Sport",
		Super = "Super",
		Motorcycle = "Motorcycle",
		OffRoad = "Off-Road",
		Industrial = "Industrial",
		Utility = "Utility",
		Van = "Van",
		Bicycle = "Bicycle",
		Boat = "Boat",
		Helicopter = "Helicopter",
		Plane = "Plane",
		Service = "Service",
		Emergency = "Emergency",
		Military = "Military",
		Commercial = "Commercial",
		Train = "Train",
		OpenWheel = "Open Wheel",
	},
}

Last updated