How to add another hotel example

Video tutorial with editor

Editor

How to add another hotel example

Config.Hotels = { --Predefined gabz motel you can change it to whatever hotel you like

	-------------------------------------------
	-- First hotel
	-------------------------------------------
	{
		displayName = 'Pinkcage motel',
		name = 'pinkcage', --Must be uniq for every hotel
		paymentType = 'invoice', --Standard or invoice
		distance = 100.0,
		blip = {
			color = 15,
			sprite = 542,
			coords = vector3(325.71, -211.33, 54.09),
			scale = 0.8,
		},
		doorText = {
			size = 0.8,
			scale = 0.8,
			renderDistance = 3,
		},

		rooms = {
			-------------------------------------------
			-- Room list for this hotel
			-------------------------------------------
			{
				name = 'pinkcage14',
				price = 500,
				storage = {
					state = false,
					position = vector3(310.47, -198.6, 53.23)
				},
				clothes = {
					state = true,
					position = vector3(302.97, -207.0, 54.23)
				},
				door = {
					name = 'Room 14#',
					objHash = -1156992775,
					position = vector3(306.8, -213.6, 54.37),
					offset = {
						x = 0.5,
						y = 0,
						z = 0.5
					},
					objHeading = 68.96
				},
			},
			-------------------------------------------
		},
	},
	-------------------------------------------
	-- Second hotel
	-------------------------------------------
	{
		displayName = 'Another hotel',
		name = 'another_hotel', --Must be uniq for every hotel
		paymentType = 'invoice', --Standard or invoice
		distance = 100.0,
		blip = {
			color = 15,
			sprite = 542,
			coords = vector3(0.71, -0.33, 0.09),
			scale = 0.8,
		},
		doorText = {
			size = 0.8,
			scale = 0.8,
			renderDistance = 3,
		},

		rooms = {
			-------------------------------------------
			-- Room list for this hotel
			-------------------------------------------
			{
				name = 'pinkcage14',
				price = 500,
				storage = {
					state = false,
					position = vector3(5.47, -5.6, 5.23)
				},
				clothes = {
					state = true,
					position = vector3(3.97, -3.0, 5.23)
				},
				door = {
					name = 'Room 14#',
					objHash = -1156992775,
					position = vector3(7.8, -7.6, 5.37),
					offset = {
						x = 0.5,
						y = 0,
						z = 0.5
					},
					objHeading = 68.96
				},
			},
			-------------------------------------------
		},
	},
	-------------------------------------------
}

Last updated