Config

Config                            = {}
Config.Debug = false
Config.Language = "en" -- en/fi

Config.Framework = 'QB' -- Options: 'ESX', 'QB', 'CUSTOM' (YOU CAN EDIT ALL FUNCTIONS IN SHARED FOLDER!)

-- set this to Config.RemovalDays = nil to disable this feature
Config.RemovalDays = 60 -- how long motel has to be inactive for it to get deleted automatically from database (no one goes inside)


Config.rentFrequency = 5 -- how often rent is taken from player (in days)
Config.MaximumRooms = 1 -- how many rooms one player can have

Config.DaysBeforeHand = 2 -- players can pay rent manually only when there is 2 days for next payment schedule (if paying manually while 2 days remaining for payment it will be 2 + rentFrequency so next payment date will be in 7 days)
Config.PaymentType = 'money' -- bank or money ON RENT

Config.ShellOffsets = {
	
	['exit'] = {
		label = 'Exit',
		pos = vector3(-0.359857, -2.445679, -0.103920),
		heading = 272.418732
	},
	
	['wardrobe'] = {
		label = 'Wardrobe',
		pos = vector3(1.365768, 3.182617, -0.402031),
	},
	
	['storage'] = {
		label = 'Stash',
		pos = vector3(1.592773, -3.311157, -1.021606),
	},

}

Config.Motels = {
	
	['lossantosmotel'] = {
		name = 'Los Santos Motel', -- blip name
		rent = 3000, -- rent amount
		rooms = {
			[1] = vector4(312.9884, -218.7751, 54.5218, 338.0927), -- w = players heading when going outside
			[2] = vector4(310.9008, -218.0862, 54.5218, 334.2856),
			[3] = vector4(307.3182, -216.7301, 54.5218, 338.3768),
			[4] = vector4(307.4805, -213.3028, 54.5218, 250.3647),
			[5] = vector4(309.4758, -208.0020, 54.5218, 249.5409),
			[6] = vector4(311.2115, -203.4435, 54.5218, 250.6821),
			[7] = vector4(313.2296, -198.1408, 54.5218, 246.8568),
			[8] = vector4(315.7512, -194.8332, 54.2264, 153.7836),
			[9] = vector4(319.2990, -196.1593, 54.2264, 159.7365),
			[11] = vector4(312.8038, -218.8751, 58.0192, 342.4346),
			[12] = vector4(310.9189, -218.1367, 58.0192, 339.6530),
			[13] = vector4(307.3059, -216.7285, 58.0192, 339.5836),
			[14] = vector4(307.4770, -213.2910, 58.0192, 252.3372),
			[15] = vector4(309.4918, -208.0147, 58.0192, 250.6503),
			[16] = vector4(311.2417, -203.4343, 58.0192, 246.9848),
			[17] = vector4(313.2700, -198.1254, 58.0192, 247.2160),
			[18] = vector4(315.7121, -194.7225, 58.0193, 161.1483),
			[19] = vector4(319.3429, -196.1175, 58.0193, 159.1391),
			[20] = vector4(321.3163, -196.8744, 58.0193, 160.4069),
			[21] = vector4(329.4235, -225.2772, 54.2217, 336.4650),
			[22] = vector4(331.3694, -225.9787, 54.2217, 338.1718),
			[23] = vector4(334.9919, -227.4150, 54.2217, 335.3459),
			[24] = vector4(337.2002, -224.7585, 54.2217, 70.3216),
			[25] = vector4(339.2269, -219.4792, 54.2217, 67.1506),
			[26] = vector4(340.9844, -214.7731, 54.5218, 70.1595),
			[27] = vector4(343.0248, -209.5512, 54.5218, 70.9419),
			[28] = vector4(344.7814, -205.0074, 54.5218, 68.2032),
			[29] = vector4(346.7990, -199.6332, 54.5218, 76.2960),
			[30] = vector4(329.4716, -225.2219, 58.0192, 337.8866),
			[31] = vector4(331.4321, -225.9749, 58.0192, 336.6747),
			[32] = vector4(334.9757, -227.3357, 58.0192, 340.5287),
			[33] = vector4(337.2008, -224.7621, 58.0192, 72.1557),
			[34] = vector4(339.2474, -219.3817, 58.0192, 70.4246),
			[35] = vector4(340.9781, -214.8462, 58.0192, 71.0129),
			[36] = vector4(343.0312, -209.5748, 58.0192, 66.6385),
			[37] = vector4(344.7994, -204.9666, 58.0192, 70.9421),
			[39] = vector4(346.8200, -199.7024, 58.0192, 64.4201),
		}
	},

	['route68motel'] = {
		name = 'Route 68 Motel', -- blip name
		rent = 2500, -- rent amount
		rooms = {
			[1] = vector4(1142.4221, 2654.6865, 38.1506, 88.6314), -- w = players heading when going outside
			[2] = vector4(1142.3799, 2651.0388, 38.1409, 91.4614),
			[3] = vector4(1142.4221, 2643.5857, 38.1437, 90.1956),
			[4] = vector4(1141.2517, 2641.6660, 38.1437, 359.4029),
			[5] = vector4(1136.3973, 2641.6636, 38.1437, 358.4080),
			[6] = vector4(1132.8511, 2641.6394, 38.1437, 359.0758),
			[7] = vector4(1125.3132, 2641.6860, 38.1437, 358.5775),
			[8] = vector4(1121.4899, 2641.6394, 38.1437, 2.4539),
			[9] = vector4(1114.8378, 2641.6746, 38.1437, 357.7526),
			[10] = vector4(1107.1787, 2641.6394, 38.1438, 354.8433),
			[11] = vector4(1106.0240, 2649.0166, 38.1409, 270.4801),
			[12] = vector4(1106.0083, 2652.7378, 38.1409, 268.9062),
			
		}
	},


	['paletobay'] = {
		name = 'Paleto Bay Motel', -- blip name
		rent = 2000, -- rent amount
		rooms = {
			[1] = vector4(-166.8015, 6439.7471, 31.9159, 132.8040), -- w = players heading when going outside
			[2] = vector4(-159.7970, 6432.7178, 31.9159, 131.6672),
			[3] = vector4(-149.9060, 6422.8501, 31.9159, 131.1913),
			[4] = vector4(-149.8406, 6416.0703, 31.9159, 43.7715),
			[5] = vector4(-156.8789, 6409.0396, 31.9159, 42.8698),

			
		}
	},
}

Config.Translations = {
	fi = {
		open_room = "Avaa valikko",
		enter_room = "Mene huoneeseen",
		rent_room = "Vuokraa huone",
		rent_room_with_id = "Vuokraa huone %s",
		rent_amount_info = "Vuokra on %s€ ja se otetaan %s päivän välein",
		are_you_sure = "Oletko varma?",
		pay_rent_manual_confirmation = "Oletko varma että haluat maksaa vuokran nyt?",
		give_keys = "Anna avaimia",
		give_keys_desc = "Anna avaimet toiselle henkilölle",
		no_players_nearby = "Ei pelaajia lähellä",
		player_id = "ID: %s",
		give_keys_nearest = "Anna avaimet lähimmälle pelaajalle",
		remove_keys = "Poista avaimia",
		remove_keys_desc = "Poista annettu avain",
		no_keys_given = "Et ole antanut huoneistoosi kenellekkään avaimia",
		cancel_rent_confirm = "Oletko varma että haluat irtisanoa huoneesi %s %s",
		cancel_rent = "Irtisanoudu",
		rent_status = "Vuokran tilanne",
		time_left = "Aikaa jäljellä",
		amount = "Summa",
		pay_rent_now = "Maksa vuokra nyt",
		you_can_pay = "Voit maksaa vuokran manuaalisesti vasta kun on %s päivää seuraavaan maksuun",
		no_money = "Ei tarpeeksi rahaa",
		motel_rent_paid = {
			title = "Motelli",
			description = "Vuokra maksettu onnistuneesti",
			duration = 5000,
			type = "success"
		},
		motel_rent_failed = {
			title = "Motelli",
			description = "Sinulla ei ole varaa vuokraan",
			duration = 5000,
			type = "error"
		},
		motel_room_limit = {
			title = "Motelli",
			description = "Et voi vuokrata enempää kuin %d huonetta",
			duration = 5000,
			type = "error"
		},
		motel_rent_charged = {
			title = "Motelli",
			description = "Sinulta veloitettiin %d€",
			duration = 10000,
			type = "info"
		},
		motel_room_rented = {
			title = "Motelli",
			description = "Huone vuokrattu",
			duration = 3000,
			type = "success"
		},
		motel_keys_given = {
			title = "Motelli",
			description = "Annoit avaimet ID:lle %d",
			duration = 3000,
			type = "success"
		},
		motel_keys_received = {
			title = "Motelli",
			description = "Sait avaimet huoneeseen %d",
			duration = 3000,
			type = "success"
		},
		motel_load_failed = {
			title = "Motelli",
			description = "Motellin lataaminen epäonnistui...",
			duration = 3000,
			type = "error"
		},
		days = "päivää",
		hours = "tuntia",
		minutes = "minuuttia",
		pay_rent_soon = "Maksa vuokra nyt",
		motel_room_cancelled = {
			title = "Motelli",
			description = "Huoneistosi on irtisanottu",
			duration = 3000,
			type = "success"
		},
		motel_error = {
			title = "Motelli",
			description = "Tapahtui virhe",
			duration = 3000,
			type = "error"
		},
		motel_keys_taken = {
			title = "Motelli",
			description = "Avaimet poistettu huoneesta %d",
			duration = 3000,
			type = "error"
		},
		motel_keys_removed = {
			title = "Motelli",
			description = "Avaimet poistettu onnistuneesti",
			duration = 3000,
			type = "success"
		},
		no_money = {
			title = "Motelli",
			description = "Ei tarpeeksi rahaa huoneen vuokraamiseen",
			duration = 3000,
			type = "error"
		},
	},
	en = {
		open_room = "Open menu",
		enter_room = "Enter room",
		rent_room = "Rent room",
		rent_room_with_id = "Rent room %s",
		rent_amount_info = "Rent amount is %s€ and rent is taken every %s days",
		are_you_sure = "Are you sure?",
		pay_rent_manual_confirmation = "Are you sure that you want to pay rent now?",
		give_keys = "Give keys",
		give_keys_desc = "Give keys to another person",
		no_players_nearby = "No players nearby",
		player_id = "ID: %s",
		give_keys_nearest = "Give keys to nearest player",
		remove_keys = "Remove keys",
		remove_keys_desc = "Remove given key",
		no_keys_given = "You haven't given keys to anyone for this room",
		cancel_rent_confirm = "Are you sure you want to cancel your room %s %s",
		cancel_rent = "Cancel rent",
		rent_status = "Rent status",
		time_left = "Time left",
		amount = "Amount",
		pay_rent_now = "Pay rent now",
		you_can_pay = "You can pay rent manually only when there is %s days remaining for scheduled payment",
		motel_rent_paid = {
			title = "Motel",
			description = "Rent paid successfully",
			duration = 5000,
			type = "success"
		},
		motel_rent_failed = {
			title = "Motel",
			description = "You cannot afford the rent",
			duration = 5000,
			type = "error"
		},
		motel_room_limit = {
			title = "Motel",
			description = "You cannot rent more than %d rooms",
			duration = 5000,
			type = "error"
		},
		motel_rent_charged = {
			title = "Motel",
			description = "You were charged %d€",
			duration = 10000,
			type = "info"
		},
		motel_room_rented = {
			title = "Motel",
			description = "Room rented",
			duration = 3000,
			type = "success"
		},
		motel_keys_given = {
			title = "Motel",
			description = "You gave keys to ID: %d",
			duration = 3000,
			type = "success"
		},
		motel_keys_received = {
			title = "Motel",
			description = "You received keys to room %d",
			duration = 3000,
			type = "success"
		},
		motel_keys_taken = {
			title = "Motel",
			description = "Keys removed from room %d",
			duration = 3000,
			type = "error"
		},
		motel_keys_removed = {
			title = "Motel",
			description = "Keys removed successfully",
			duration = 3000,
			type = "success"
		},
		motel_load_failed = {
			title = "Motel",
			description = "Failed to load motel...",
			duration = 3000,
			type = "error"
		},
		days = "days",
		hours = "hours",
		minutes = "minutes",
		pay_rent_soon = "Pay rent now",
		motel_no_bank_card = {
			title = "Motel",
			description = "You don't have a bank card",
			duration = 6000,
			type = "error"
		},
		motel_room_cancelled = {
			title = "Motel",
			description = "Your room has been cancelled",
			duration = 3000,
			type = "success"
		},
		motel_error = {
			title = "Motel",
			description = "An error occurred",
			duration = 3000,
			type = "error"
		},
		no_money = {
			title = "Motel",
			description = "You dont have enough money to rent this room",
			duration = 3000,
			type = "error"
		},
		
	},
	LogTranslations = {
		['fi'] = {
			['motel_rent'] = '%s vuokrasi huoneen %s | %s',			
			['motel_cancel_rent'] = '%s irtisanoi vuokran kohteessa %s | Huone:  %s',
			['motel_keys_given'] = '%s antoi avaimet %s | Motelli: %s Huone %s',
			['motel_keys_removed'] = '%s poisti avaimet %s | Huone: %s henkilöltä %s',
			['motel_rent_paid'] = '%s maksoi vuokran motelli huoneesta %s | Huone: %s',
			['motel_rent_charged'] = '%s veloitettiin automaattinen vuokra motelli huoneesta %s | Huone: %s',
			['motel_removed'] = 'Due to inactivity removed motel %s | room: %s from %s',
		},
		['en'] = {
			['motel_rent'] = '%s rented room %s | %s',
			['motel_cancel_rent'] = '%s canceled rent on motel %s | Room:  %s',
			['motel_keys_given'] = '%s gave keys to %s | Motel: %s Room %s',
			['motel_keys_removed'] = '%s removed keys from %s | Motel: %s - Room: %s',
			['motel_rent_paid'] = '%s paid rent for motel %s | Room: %s',
			['motel_rent_charged'] = '%s was charged automatic rent for motel room %s | Room: %s',
			['motel_removed'] = 'Due to inactivity removed motel %s | room: %s from %s',
		}
	}
}

Last updated