renzuzu/renzu_motels

New motel door problem

Opened this issue · 2 comments

I added 1 new mlo hotel ymap, but the doors always remain open.
I added the hash number and the coordination, but it doesn't work. Could someone help me ?

[2] = { -- index name of motel
	manual = false, -- set the motel to auto accept occupants or false only the owner of motel can accept Occupants
	Mlo = true, -- if MLO you need to configure each doors coordinates,stash etc. if false resource will use shells
	shell = 'modern', -- shell type, configure only if using Mlo = true
	label = 'Yacht Club Motel',
	rental_period = 'day',-- hour, day, month
	payment = 'money', -- money, bank
	rate = 1000, -- cost per period
	motel = 'yacht',
	door = `597055185`, -- door hash for MLO type
	businessprice = 1000000,
	rentcoord = vec3(964.41,-192.67,73.30),
	coord = vec3(964.41,-192.67,73.30), -- center of the motel location
	radius = 50.0, -- radius of motel location
	maxoccupants = 5, -- maximum renters per room
	uniquestash = true, -- if true. each players has unique stash ID (non sharable and non stealable). if false stash is shared to all Occupants if maxoccupans is > 1
	doors = { -- doors and other function of each rooms
		[1] = {
			door = vec3(970.8675,-200.1984,73.5298),
			stash = vec3(-944.08,-1317.83,6.19),
			wardrobe = vec3(-941.21,-1324.9,6.19),
			--fridge = vec3(305.26,-206.43,54.22),
			-- luckyme = vec3(0.0,0.0,0.0) -- extra shit
		},
	},
},

i use idgun to check what is the exactly coordinate and hash code

Try This

[2] = { -- index name of motel
	manual = false, -- set the motel to auto accept occupants or false only the owner of motel can accept Occupants
	Mlo = true, -- if MLO you need to configure each doors coordinates,stash etc. if false resource will use shells
	shell = 'standard', -- shell type, configure only if using Mlo = true
	label = 'Yacht Club Motel',
	rental_period = 'day',-- hour, day, month
	rate = 350, -- cost per period
	businessprice = 1000000,
	motel = 'yacht',
	payment = 'money', -- money, bank
	door = 1398355146, -- door hash for MLO type
	rentcoord = vec3(-920.5511, -1296.7175, 5.1926),
	coord = vec3(-920.5511, -1296.7175, 5.1926), -- center of the motel location
	radius = 500.0, -- radius of motel location
	maxoccupants = 1, -- maximum renters per room
	uniquestash = false, -- if true. each players has unique stash ID (non sharable and non stealable). if false stash is shared to all Occupants if maxoccupans is > 1
	doors = { -- doors and other function of each rooms
		[1] = { -- COORDINATES FOR GABZ PINKCAGE
			door = vec3(-936.3161, -1311.1565, 6.2002),
			stash = vec3(-943.7177, -1318.4213, 6.1987),
			wardrobe = vec3(-944.2415, -1315.7715, 6.1987),
			--fridge = vec3(305.00064086914,-206.12855529785,54.544868469238), --  requires when using MLO
			-- luckyme = vec3(0.0,0.0,0.0) -- extra
		},
		[2] = {
			door = vec3(-936.3161, -1311.1565, 9.893403),
			stash = vec3(-944.1959, -1317.1588, 9.8015),
			wardrobe = vec3(-938.3217, -1320.3604, 9.8015),
			--fridge = vec3(308.79779052734,-196.23670959473,54.440326690674),
		},
		[3] = {
			door = vec3(-936.3161, -1311.1565, 13.1999),
			stash = vec3(-938.3217, -1320.3604, 13.1983),
			wardrobe = vec3(-944.7523, -1315.5049, 13.1983),
			--fridge = vec3(322.92010498047,-192.31481933594,54.600353240967),
		},
		[4] = {
			door = vec3(-902.3430, -1298.8093, 6.2001),
			stash = vec3(-943.7177, -1318.4213, 6.1987),
			wardrobe = vec3(-910.3449, -1303.4485, 6.1987),

			--fridge = vec3(307.6989440918,-222.11755371094,58.293560028076),
		},
		[5] = {
			door = vec3(-902.3430, -1298.8093, 9.6999),
			stash = vec3(-909.9222, -1306.1289, 9.8015),
			wardrobe = vec3(-910.3449, -1303.4485, 9.8015),
			--fridge = vec3(305.044921875,-205.99066162109,58.394989013672),
		},
		[6] = {
			door = vec3(-902.3430, -1298.8093, 13.1998),
			stash = vec3(-910.9924, -1303.0690, 13.1983),
			wardrobe = vec3(-910.3449, -1303.4485, 13.1983),
			--fridge = vec3(308.73110961914,-196.40968322754,58.407859802246),
		},
		[7] = {
			door = vec3(-868.6076, -1286.5450, 6.1991),
			stash = vec3(-876.0839, -1293.7390, 6.1987),
			wardrobe = vec3(-876.6874, -1291.2369, 6.1987),
			--fridge = vec3(322.98544311523,-192.33996582031,58.386581420898),
		},
		[8] = {
			door = vec3(-868.6076, -1286.5450, 9.7002),
			stash = vec3(-876.0839, -1293.7390, 9.8015),
			wardrobe = vec3(-876.6874, -1291.2369, 9.8015),
			--fridge = vec3(341.86477661133,-226.15287780762,54.642837524414),
		},
		[9] = {
			door = vec3(-868.6076, -1286.5450, 13.1999),
			stash = vec3(-877.1210, -1290.8677, 13.1983),
			wardrobe = vec3(-876.6874, -1291.2369, 13.1983),
			--fridge = vec3(345.53387451172,-216.53938293457,54.698444366455),
		},

	},
},