--This is the server sided module for handling this vehicles seating requests

local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local HttpService = game:GetService("HttpService")

local DOOR_OPEN_SPEED = 2.15
local DOOR_OPEN_ANGLE = 55
local DOOR_OPEN_TIME = 0.5 --How long the door stays open for when entering/leaving

local MAX_SEATING_DISTANCE = 15
local MIN_FLIP_ANGLE = 70 --degrees from vertical

local PackagedScripts = script.Parent
local PackagedVehicle = PackagedScripts.Parent
local VehicleConfig = PackagedVehicle:WaitForChild("Configuration", 10)
if not VehicleConfig then
	warn("No vehicle configuration present, will use default values")
end

local AllowCarjacking = false
local AllowCarjackingConfig = VehicleConfig:WaitForChild("AllowCarjacking", 10)
if not AllowCarjackingConfig then
	warn("No AllowCarjacking configuration present, will use default value of false")
else
	AllowCarjacking = AllowCarjackingConfig.Value
end


local RemotesFolder = nil --Set later in the code by the SetRemotesFolder function
