--Objects

local DriverSeat = Chassis.driverSeat

local function unbindActions()
	ContextActionService:UnbindAction(STEER_LEFT_ACTION_NAME)
	ContextActionService:UnbindAction(STEER_RIGHT_ACTION_NAME)
	ContextActionService:UnbindAction(THROTTLE_ACTION_NAME)
	ContextActionService:UnbindAction(BRAKE_ACTION_NAME)
	ContextActionService:UnbindAction(HAND_BRAKE_ACTION_NAME)
	ContextActionService:UnbindAction(EXIT_ACTION_NAME)
end

local function onExitSeat(Seat)
	unbindActions()
	LocalVehicleSeating.DisconnectFromSeatExitEvent(onExitSeat)
	script.Disabled = true
end
LocalVehicleSeating.OnSeatExitEvent(onExitSeat)
