- Download as Zip or clone the repository
- Install it on your server
- Run
ensure snowy_bedsin your server console - Its done!
- Go into the
snowy_bedsfolder - Go into the
config/client.luafile - Add your beds as this (insdie the beds table):
["name_of_your_bed"] = {
["left"] = { -- left side of the bed
box = {
coords = vec3(-797.09, 335.67, 190.4), -- coords of the zone ( u can use /zone box to make one!)
size = vec3(1.15, 2.8, 1.25), -- size of the zone
rotation = 0.0, -- rotation of the zone ( u can use /zone box to make one!)
referenceCorner = "topright" -- topright, topleft, bottomright, bottomleft
},
ped = {
bedOffset = vec3(0.0, 0.0, -0.25), -- offset of the player when he is laying on the bed, we use -0.25 to go downwards
heading = 90.0, -- heading the player is facing when he is laying on the bed
},
offsets = { --[[ L/R F/B U/D ]]
entry = vec3(0.5, -1.3, 0.0), -- offset of the player when he is entering the bed (this is where movement goes before anim)
scene = vec3(-1.1, -1.3, 0.0), -- offset for the scene, this is sometimes different, other times same.
heading = 85.0 -- heading of the anim ( we set player to this aswell, so it just looks at the bed)
},
},
["right"] = { -- right side of the bed
box = {
coords = vec3(-798.36, 335.7, 190.35), -- coords of the zone ( u can use /zone box to make one!)
size = vec3(1.15, 2.8, 1.25), -- size of the zone
rotation = 0.0, -- rotation of the zone ( u can use /zone box to make one!)
referenceCorner = "topleft" -- topright, topleft, bottomright, bottomleft
},
ped = {
bedOffset = vec3(0.0, 0.0, 0.38), -- offset of the player when he is laying on the bed, we use -0.25 to go downwards
heading = 90.0, -- heading the player is facing when he is laying on the bed
},
offsets = { --[[ L/R F/B U/D ]]
entry = vec3(-0.8, -0.6, 0.0), -- offset of the player when he is entering the bed (this is where movement goes before anim)
scene = vec3(-0.8, -0.6, 0.0), -- offset for the scene, this is sometimes different, other times same.
heading = 230.0 -- heading of the anim ( we set player to this aswell, so it just looks at the bed)
},
}
},- Save the file
- Restart the script
- Its done!
- Special Credits to @BeansFL for the UI!
- Thanks to Izzy on qbox discord for the idea!
- Me for the code :)